telegraf/plugins/inputs/cgroup
Cameron Sparr 2eee1b84fb
break telegraf registry into separate package
this is for supporting external plugins.

external plugins will depend on a few telegraf interface types, as well
as a common telegraf registry.

this will allow external and internal plugins to both share this package
and make it easier to vendor/version the whole thing semantically, which
will make it easier to keep plugins supported across build and telegraf
versions.

see #1717
2017-02-06 11:16:29 +00:00
..
testdata add cgroup plugin 2016-06-23 10:13:31 +01:00
README.md Revert "Moving cgroup path name to field from tag to reduce cardinality (#1457)" 2016-10-12 11:04:28 +01:00
cgroup.go break telegraf registry into separate package 2017-02-06 11:16:29 +00:00
cgroup_linux.go Revert "Moving cgroup path name to field from tag to reduce cardinality (#1457)" 2016-10-12 11:04:28 +01:00
cgroup_notlinux.go refactor cgroup build so non-linux systems see plugin 2016-06-23 11:47:25 +01:00
cgroup_test.go Revert "Moving cgroup path name to field from tag to reduce cardinality (#1457)" 2016-10-12 11:04:28 +01:00

README.md

CGroup Input Plugin For Telegraf Agent

This input plugin will capture specific statistics per cgroup.

Consider restricting paths to the set of cgroups you really want to monitor if you have a large number of cgroups, to avoid any cardinality issues.

Following file formats are supported:

  • Single value
VAL\n
  • New line separated values
VAL0\n
VAL1\n
  • Space separated values
VAL0 VAL1 ...\n
  • New line separated key-space-value's
KEY0 VAL0\n
KEY1 VAL1\n

Tags:

All measurements have the following tags:

  • path

Configuration:

# [[inputs.cgroup]]
  # paths = [
  #   "/cgroup/memory",           # root cgroup
  #   "/cgroup/memory/child1",    # container cgroup
  #   "/cgroup/memory/child2/*",  # all children cgroups under child2, but not child2 itself
  # ]
  # files = ["memory.*usage*", "memory.limit_in_bytes"]

# [[inputs.cgroup]]
  # paths = [
  #   "/cgroup/cpu",              # root cgroup
  #   "/cgroup/cpu/*",            # all container cgroups
  #   "/cgroup/cpu/*/*",          # all children cgroups under each container cgroup
  # ]
  # files = ["cpuacct.usage", "cpu.cfs_period_us", "cpu.cfs_quota_us"]