2021-08-24 04:37:44 +08:00
|
|
|
//go:build !linux
|
2016-04-08 02:08:26 +08:00
|
|
|
|
|
|
|
|
package sysstat
|
2023-03-07 16:38:05 +08:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
_ "embed"
|
|
|
|
|
|
|
|
|
|
"github.com/influxdata/telegraf"
|
|
|
|
|
"github.com/influxdata/telegraf/plugins/inputs"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
//go:embed sample.conf
|
|
|
|
|
var sampleConfig string
|
|
|
|
|
|
|
|
|
|
type Sysstat struct {
|
|
|
|
|
Log telegraf.Logger `toml:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (s *Sysstat) Init() error {
|
|
|
|
|
s.Log.Warn("current platform is not supported")
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (*Sysstat) SampleConfig() string { return sampleConfig }
|
|
|
|
|
func (*Sysstat) Gather(_ telegraf.Accumulator) error { return nil }
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
inputs.Add("sysstat", func() telegraf.Input {
|
|
|
|
|
return &Sysstat{}
|
|
|
|
|
})
|
|
|
|
|
}
|