telegraf/plugins/inputs/infiniband/infiniband_notlinux.go

24 lines
403 B
Go
Raw Normal View History

// +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{}
})
}