2021-08-24 04:37:44 +08:00
|
|
|
//go:build windows
|
2018-07-12 07:43:49 +08:00
|
|
|
|
|
|
|
|
package processes
|
2020-01-11 04:43:28 +08:00
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"github.com/influxdata/telegraf"
|
|
|
|
|
"github.com/influxdata/telegraf/plugins/inputs"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Processes struct {
|
|
|
|
|
Log telegraf.Logger
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (e *Processes) Init() error {
|
|
|
|
|
e.Log.Warn("Current platform is not supported")
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2025-01-17 18:12:49 +08:00
|
|
|
func (*Processes) Gather(telegraf.Accumulator) error {
|
2020-01-11 04:43:28 +08:00
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
inputs.Add("processes", func() telegraf.Input {
|
|
|
|
|
return &Processes{}
|
|
|
|
|
})
|
|
|
|
|
}
|