I have enabled the CollectD:IPTables plugin to track traffic to two different server groups:
LoadPlugin iptables
<Plugin iptables>
Chain "filter" "TRACK_TRAFFIC_SERVER_A" "monitoring_traffic_server_a"
Chain "filter" "TRACK_TRAFFIC_SERVER_B" "monitoring_traffic_server_b"
</Plugin>
Plugin returns tuples for each of the Chain with type ipt_bytes and ipt_packets.
Now I would like to have a metric that provide me sum of ipt_bytes and ipt_packets sent to SERVER_A and SERVER_B.
For that, I have enabled CollectD:Aggregation plugin to provide this metric. This is the current configuration that does not work:
LoadPlugin aggregation
<Plugin "aggregation">
<Aggregation>
Plugin "iptables"
Type "iptables"
GroupBy "Host"
GroupBy "TypeInstance"
GroupBy "Type"
CalculateNum false
CalculateSum true
CalculateAverage false
CalculateMinimum false
CalculateMaximum false
CalculateStddev false
</Aggregation>
</Plugin>
How to configure aggregation plugin to work with output of the Collectd::IPTables?