1
0
Fork 0
telegraf/plugins/inputs/win_perf_counters/win_perf_counters_notwindows.go

34 lines
686 B
Go
Raw Permalink Normal View History

//go:generate ../../../tools/readme_config_includer/generator
//go:build !windows
package win_perf_counters
import (
_ "embed"
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
//go:embed sample.conf
var sampleConfig string
type WinPerfCounters struct {
Log telegraf.Logger `toml:"-"`
}
func (*WinPerfCounters) SampleConfig() string { return sampleConfig }
func (w *WinPerfCounters) Init() error {
w.Log.Warn("Current platform is not supported")
return nil
}
func (*WinPerfCounters) Gather(telegraf.Accumulator) error { return nil }
func init() {
inputs.Add("win_perf_counters", func() telegraf.Input {
return &WinPerfCounters{}
})
}