Add ethtool input plugin (#5865)

This commit is contained in:
Phil Preston
2019-11-08 19:55:37 +00:00
committed by Daniel Nelson
parent 6cbaf890d9
commit d9ddd95b3c
8 changed files with 628 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
// +build !linux
package ethtool
import (
"log"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
func (e *Ethtool) Gather(acc telegraf.Accumulator) error {
return nil
}
func init() {
inputs.Add(pluginName, func() telegraf.Input {
log.Print("W! [inputs.ethtool] Current platform is not supported")
return &Ethtool{}
})
}