1
0
Fork 0
telegraf/plugins/inputs/socketstat/socketstat_windows.go

33 lines
584 B
Go
Raw Permalink Normal View History

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