mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2024-12-26 07:29:04 +01:00
Avoid vet warning: Println arg list ends with redundant newline
This commit is contained in:
parent
e095e4f202
commit
df77c3fd60
@ -17,9 +17,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const IBBASEPATH = `/sys/class/infiniband/`
|
const (
|
||||||
const LIDFILE = `/sys/class/infiniband/mlx4_0/ports/1/lid`
|
IBBASEPATH = `/sys/class/infiniband/`
|
||||||
const PERFQUERY = `/usr/sbin/perfquery`
|
PERFQUERY = `/usr/sbin/perfquery`
|
||||||
|
)
|
||||||
|
|
||||||
type InfinibandCollectorConfig struct {
|
type InfinibandCollectorConfig struct {
|
||||||
ExcludeDevices []string `json:"exclude_devices,omitempty"`
|
ExcludeDevices []string `json:"exclude_devices,omitempty"`
|
||||||
@ -40,12 +41,14 @@ func (m *InfinibandCollector) Help() {
|
|||||||
fmt.Println("The devices can be filtered with the 'exclude_devices' option in the configuration.")
|
fmt.Println("The devices can be filtered with the 'exclude_devices' option in the configuration.")
|
||||||
fmt.Println("For each found LIDs the collector calls the 'perfquery' command")
|
fmt.Println("For each found LIDs the collector calls the 'perfquery' command")
|
||||||
fmt.Println("The path to the 'perfquery' command can be configured with the 'perfquery_path' option")
|
fmt.Println("The path to the 'perfquery' command can be configured with the 'perfquery_path' option")
|
||||||
fmt.Println("in the configuration\n")
|
fmt.Println("in the configuration")
|
||||||
|
fmt.Println("")
|
||||||
fmt.Println("Full configuration object:")
|
fmt.Println("Full configuration object:")
|
||||||
fmt.Println("\"ibstat\" : {")
|
fmt.Println("\"ibstat\" : {")
|
||||||
fmt.Println(" \"perfquery_path\" : \"path/to/perfquery\" # if omitted, it searches in $PATH")
|
fmt.Println(" \"perfquery_path\" : \"path/to/perfquery\" # if omitted, it searches in $PATH")
|
||||||
fmt.Println(" \"exclude_devices\" : [\"dev1\"]")
|
fmt.Println(" \"exclude_devices\" : [\"dev1\"]")
|
||||||
fmt.Println("}\n")
|
fmt.Println("}")
|
||||||
|
fmt.Println("")
|
||||||
fmt.Println("Metrics:")
|
fmt.Println("Metrics:")
|
||||||
fmt.Println("- ib_recv")
|
fmt.Println("- ib_recv")
|
||||||
fmt.Println("- ib_xmit")
|
fmt.Println("- ib_xmit")
|
||||||
|
Loading…
Reference in New Issue
Block a user