Skip to content

Commit

Permalink
cgroup: change fields -> files
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc authored and Srini Chebrolu committed Jun 24, 2016
1 parent c25c6c9 commit f0e80ea
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions plugins/inputs/cgroup/cgroup.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,19 @@ const metricName = "cgroup"

type CGroup struct {
Paths []string `toml:"paths"`
Files []string `toml:"fields"`
Files []string `toml:"files"`
}

var sampleConfig = `
## Directories in which to look for files, globs are supported.
# paths = [
# "/cgroup/memory",
# "/cgroup/memory/child1",
# "/cgroup/memory/child2/*",
# ]
# fields = ["memory.*usage*", "memory.limit_in_bytes"]
## cgroup stat fields, as file names, globs are supported.
## these file names are appended to each path from above.
# files = ["memory.*usage*", "memory.limit_in_bytes"]
`

func (g *CGroup) SampleConfig() string {
Expand Down

0 comments on commit f0e80ea

Please sign in to comment.