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,23 @@
// +build !linux
package infiniband
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
func (i *Infiniband) Init() error {
i.Log.Warn("Current platform is not supported")
return nil
}
func (_ *Infiniband) Gather(acc telegraf.Accumulator) error {
return nil
}
func init() {
inputs.Add("infiniband", func() telegraf.Input {
return &Infiniband{}
})
}