Add a new input plugin for InfiniBand card/port statistics (#6631)

This commit is contained in:
Will Furnell
2020-01-16 20:51:33 +00:00
committed by Daniel Nelson
parent 93f149f126
commit 182104f95e
8 changed files with 285 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
package infiniband
import (
"github.com/influxdata/telegraf"
)
// Stores the configuration values for the infiniband plugin - as there are no
// config values, this is intentionally empty
type Infiniband struct {
Log telegraf.Logger `toml:"-"`
}
// Sample configuration for plugin
var InfinibandConfig = ``
func (_ *Infiniband) SampleConfig() string {
return InfinibandConfig
}
func (_ *Infiniband) Description() string {
return "Gets counters from all InfiniBand cards and ports installed"
}