2023-03-16 00:47:55 +08:00
|
|
|
//go:generate ../../../tools/readme_config_includer/generator
|
2021-08-24 04:37:44 +08:00
|
|
|
//go:build !linux
|
2018-10-26 03:14:19 +08:00
|
|
|
|
|
|
|
|
package ipvs
|
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 Ipvs struct {
|
|
|
|
|
Log telegraf.Logger `toml:"-"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (i *Ipvs) Init() error {
|
|
|
|
|
i.Log.Warn("current platform is not supported")
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (*Ipvs) SampleConfig() string { return sampleConfig }
|
|
|
|
|
func (*Ipvs) Gather(_ telegraf.Accumulator) error { return nil }
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
inputs.Add("ipvs", func() telegraf.Input {
|
|
|
|
|
return &Ipvs{}
|
|
|
|
|
})
|
|
|
|
|
}
|