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