We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c25c6c9 commit f0e80eaCopy full SHA for f0e80ea
plugins/inputs/cgroup/cgroup.go
@@ -19,16 +19,19 @@ const metricName = "cgroup"
19
20
type CGroup struct {
21
Paths []string `toml:"paths"`
22
- Files []string `toml:"fields"`
+ Files []string `toml:"files"`
23
}
24
25
var sampleConfig = `
26
+ ## Directories in which to look for files, globs are supported.
27
# paths = [
28
# "/cgroup/memory",
29
# "/cgroup/memory/child1",
30
# "/cgroup/memory/child2/*",
31
# ]
- # fields = ["memory.*usage*", "memory.limit_in_bytes"]
32
+ ## cgroup stat fields, as file names, globs are supported.
33
+ ## these file names are appended to each path from above.
34
+ # files = ["memory.*usage*", "memory.limit_in_bytes"]
35
`
36
37
func (g *CGroup) SampleConfig() string {
0 commit comments