I have created a custom agent sending regularly some metrics to CheckMK about an internal API (number of orders received, number of created orders, numbers of errors during creation), I use those metrics to create a graph that I include into a report sent to our customer every month and this works well.
My question is, in addition to the maximum, minimum and average values I would like to display the total (received, created, errors) over the period defined for the graph/report.
I can’t find a way to achieve that, is there any way to do it?
Yes, I’m aware that I can sum several metrics values but it’s not what I’m trying to achieve.
Let’s focus on “received” metric, I have all the values for received orders, let’s say hour by hour for one month, the sum that I want to retrieve is the total amount of the “received” ones for the given month.
CheckMK doesn’t seem to provide any way to sum the metric itself but only the values of max/min/avg between two ore more metrics, the thing I would like is something like max/min/avg/total.
That is not possible.
As you aggregate the metrics over time inside the RRD file.
What you need to do is, calculation of the area beneath the curve to get the total value over time. This function is not available inside CheckMK and it would only be a approximation of the real numbers.
For your scenario you should also save the total counter metric. Some check do this already exactly like you want it.