telegraf/plugins/inputs/cgroup/cgroup.go

16 lines
279 B
Go
Raw Normal View History

2016-06-08 16:13:22 +08:00
package cgroup
import (
"github.com/influxdata/telegraf"
"github.com/influxdata/telegraf/plugins/inputs"
)
type CGroup struct {
2016-06-23 16:11:44 +08:00
Paths []string `toml:"paths"`
Files []string `toml:"files"`
2016-06-08 16:13:22 +08:00
}
func init() {
inputs.Add("cgroup", func() telegraf.Input { return &CGroup{} })
}