telegraf/plugins/inputs/cgroup
Vladimir Sagan ec73e8f5a3 add cgroup plugin 2016-06-05 19:17:22 +03:00
..
testdata add cgroup plugin 2016-06-05 19:17:22 +03:00
README.md add cgroup plugin 2016-06-05 19:17:22 +03:00
cgroup.go add cgroup plugin 2016-06-05 19:17:22 +03:00
cgroup_notlinux.go add cgroup plugin 2016-06-05 19:17:22 +03:00
cgroup_test.go add cgroup plugin 2016-06-05 19:17:22 +03:00

README.md

CGroup Input Plugin For Telegraf Agent

This input plugin will capture specific statistics per cgroup.

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]]
  # flush_scope = 10              # optional (the fields will be divided into parts of 10 items)
  # paths = [
  #   "/cgroup/memory",           # root cgroup
  #   "/cgroup/memory/child1",    # container cgroup
  #   "/cgroup/memory/child2/*",  # all children cgroups under child2, but not child2 itself
  # ]
  # fields = ["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
  # ]
  # fields = ["cpuacct.usage", "cpu.cfs_period_us", "cpu.cfs_quota_us"]