From f0e80ea2ef13d56b8b6873c247004d81042dcda1 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Thu, 23 Jun 2016 10:23:31 +0100 Subject: [PATCH] cgroup: change fields -> files closes #1103 closes #1350 --- plugins/inputs/cgroup/cgroup.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/plugins/inputs/cgroup/cgroup.go b/plugins/inputs/cgroup/cgroup.go index 57ea67a068b99..341ada5a18ab7 100644 --- a/plugins/inputs/cgroup/cgroup.go +++ b/plugins/inputs/cgroup/cgroup.go @@ -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 {