2016-04-04 23:43:53 +00:00
|
|
|
// +build !linux
|
|
|
|
|
|
|
|
package system
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/influxdata/telegraf"
|
2017-02-04 15:58:02 +00:00
|
|
|
"github.com/influxdata/telegraf/registry/inputs"
|
2016-04-04 23:43:53 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
type Kernel struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func (k *Kernel) Description() string {
|
|
|
|
return "Get kernel statistics from /proc/stat"
|
|
|
|
}
|
|
|
|
|
|
|
|
func (k *Kernel) SampleConfig() string { return "" }
|
|
|
|
|
|
|
|
func (k *Kernel) Gather(acc telegraf.Accumulator) error {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
inputs.Add("kernel", func() telegraf.Input {
|
|
|
|
return &Kernel{}
|
|
|
|
})
|
|
|
|
}
|