cgroup: change fields -> files

closes #1103
closes #1350
This commit is contained in:
Cameron Sparr 2016-06-23 10:23:31 +01:00
parent 9c2ca805da
commit d641c42029
1 changed files with 5 additions and 2 deletions

View File

@ -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 {