diff --git a/docker/blocks/collectd/collectd.conf.tpl b/docker/blocks/collectd/collectd.conf.tpl index c19654b39f9..8b260ebac86 100644 --- a/docker/blocks/collectd/collectd.conf.tpl +++ b/docker/blocks/collectd/collectd.conf.tpl @@ -14,10 +14,9 @@ LoadPlugin interface LoadPlugin uptime LoadPlugin swap LoadPlugin write_graphite - - - ReportByCpu {{ REPORT_BY_CPU | default("false") }} - +LoadPlugin processes +LoadPlugin aggregation +LoadPlugin match_regex # expose host's mounts into container using -v /:/host:ro (location inside container does not matter much) @@ -46,6 +45,9 @@ LoadPlugin write_graphite ReportByDevice false ReportReserved true ReportInodes true + ValuesAbsolute true + ValuesPercentage true + ReportInodes true @@ -53,6 +55,15 @@ LoadPlugin write_graphite IgnoreSelected false + + + Plugin "cpu" + Type "cpu" + GroupBy "Host" + GroupBy "TypeInstance" + CalculateAverage true + + Interface "lo" @@ -61,6 +72,19 @@ LoadPlugin write_graphite IgnoreSelected true + + + + Plugin "^cpu$" + PluginInstance "^[0-9]+$" + + + Plugin "aggregation" + + Target stop + + Target "write" +