Skip to content

Commit f0e80ea

Browse files
sparrcSrini Chebrolu
authored andcommitted
cgroup: change fields -> files
closes influxdata#1103 closes influxdata#1350
1 parent c25c6c9 commit f0e80ea

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

plugins/inputs/cgroup/cgroup.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,19 @@ const metricName = "cgroup"
1919

2020
type CGroup struct {
2121
Paths []string `toml:"paths"`
22-
Files []string `toml:"fields"`
22+
Files []string `toml:"files"`
2323
}
2424

2525
var sampleConfig = `
26+
## Directories in which to look for files, globs are supported.
2627
# paths = [
2728
# "/cgroup/memory",
2829
# "/cgroup/memory/child1",
2930
# "/cgroup/memory/child2/*",
3031
# ]
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"]
3235
`
3336

3437
func (g *CGroup) SampleConfig() string {

0 commit comments

Comments
 (0)