Add a new input plugin for InfiniBand card/port statistics (#6631)
This commit is contained in:
committed by
Daniel Nelson
parent
93f149f126
commit
182104f95e
22
plugins/inputs/infiniband/infiniband.go
Normal file
22
plugins/inputs/infiniband/infiniband.go
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user