-
Notifications
You must be signed in to change notification settings - Fork 8
Aggregation Plugin
Poil edited this page Dec 4, 2013
·
6 revisions
Aggregation plugin is a cool feature that come with Collectd 5.2.
LoadPlugin aggregation
<Plugin "aggregation">
<Aggregation>
Plugin "cpu"
Type "cpu"
GroupBy "Host"
GroupBy "TypeInstance"
CalculateNum false
CalculateSum true
CalculateAverage true
CalculateMinimum false
CalculateMaximum false
CalculateStddev false
</Aggregation>
<Aggregation>
Plugin "df"
Type "df_complex"
GroupBy "Host"
GroupBy "TypeInstance"
CalculateNum false
CalculateSum true
CalculateAverage true
CalculateMinimum false
CalculateMaximum false
CalculateStddev false
</Aggregation>
</Plugin>
aggregation-cpu-average
aggregation-cpu-sum
aggregation-df-average
aggregation-df-sum
If you only use an "all match regex" (see Admin/Filters) you don't need to do something.
In other way, you need to add some filters to group your aggregation PluginCategory with his matching Plugin; The best way to do this (I think) is :
- Create a new filter
- Naming (Description) it
Plugin_aggr
, exemplecpu_aggr
- Plugin :
aggregation
- PluginInstance :
Plugin.*
, exemplecpu.*
- Type : like your plugin, generally
\w+
- TypeInstance : like your plugin, generally
.*
- Displayed order it at the same level as your plugin : default value for cpu is
3
- Go to permissions/groups
- Add this filter to all group you want
And voilà !