2015-07-20 00:09:47 -07:00
|
|
|
LoadPlugin "table"
|
|
|
|
|
<Plugin table>
|
2015-08-13 10:17:05 -07:00
|
|
|
<Table "/sys/fs/cgroup/memory/system.slice/docker-<%= containerId %>.scope/memory.stat">
|
2015-07-20 00:09:47 -07:00
|
|
|
Instance "<%= appId %>-memory"
|
|
|
|
|
Separator " \\n"
|
|
|
|
|
<Result>
|
|
|
|
|
Type gauge
|
|
|
|
|
InstancesFrom 0
|
|
|
|
|
ValuesFrom 1
|
|
|
|
|
</Result>
|
|
|
|
|
</Table>
|
|
|
|
|
|
2015-08-13 10:17:05 -07:00
|
|
|
<Table "/sys/fs/cgroup/memory/system.slice/docker-<%= containerId %>.scope/memory.max_usage_in_bytes">
|
2015-07-20 00:09:47 -07:00
|
|
|
Instance "<%= appId %>-memory"
|
|
|
|
|
Separator "\\n"
|
|
|
|
|
<Result>
|
|
|
|
|
Type gauge
|
|
|
|
|
InstancePrefix "max_usage_in_bytes"
|
|
|
|
|
ValuesFrom 0
|
|
|
|
|
</Result>
|
|
|
|
|
</Table>
|
|
|
|
|
|
2015-08-13 10:17:05 -07:00
|
|
|
<Table "/sys/fs/cgroup/cpuacct/system.slice/docker-<%= containerId %>.scope/cpuacct.stat">
|
2015-07-20 00:09:47 -07:00
|
|
|
Instance "<%= appId %>-cpu"
|
|
|
|
|
Separator " \\n"
|
|
|
|
|
<Result>
|
|
|
|
|
Type gauge
|
|
|
|
|
InstancesFrom 0
|
|
|
|
|
ValuesFrom 1
|
|
|
|
|
</Result>
|
|
|
|
|
</Table>
|
|
|
|
|
</Plugin>
|