Here's a config example using the aggregation
plugin that will compute global df
statistics per type-instance
, meaning one value per used, free and maybe others depending on your OS.
LoadPlugin aggregation
<Plugin aggregation>
<Aggregation>
Plugin "df"
Type "percent_bytes"
GroupBy "TypeInstance"
CalculateMinimum true
CalculateMaximum true
CalculateAverage true
SetPluginInstance "%{aggregation}"
SetHost "global"
SetPlugin "df"
</Aggregation>
</Plugin>
As you can guess it will compute the average, min and max aggregations but you could also add the sum by using CalculateSum
.