-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Quite often we want to display a graph in the context of a total. e.g. percentage of 404 responses out of all responses.
A stacked graph achieves this visually but there are situations where this still does not help:
Take collectd's cpu usage. It reports jiffies as a counter (we had to tweak the stock plugin to get this to work at all). The problem here is that jiffies are not necessarily a constant number per second. If we stack all of those counters together, we get spikes above and below the natural maximum line.
So what I propose is a function 'percentage of' or 'percent by' that would work similarly to 'sum by'.
Then we could query for e.g: 'stack collectd_plugin=cpu sum by core group by server percent by type'
For each graph the values would be represented as a sum of the total of all types, for each group.