Answer the question
In order to leave comments, you need to log in
Graphite (+grafana): how to multiply one metric by another?
I'm thinking about switching to graphite monitoring with grafana dashboards.
But the following functionality will be needed, I didn’t understand from the documentation whether it would be possible to do this using graphite or graphana.
Suppose I have 4 metrics:
service.type.host.a
service.type.host.b
service.group.c
service.group.d
Is it possible to create new ones based on these metrics, for example:
service.total.a = service.type.host.a / service.group.c * service.group.d
I understand that this can be done by pulling out the metric values through the request, then perform the necessary operations and send it back as a new metric, but I would like to do it easier.
service.group.d create a new metric by multiplying, adding, subtracting, dividing based on other metrics from different series.
Answer the question
In order to leave comments, you need to log in
So yes, at the level of visualization of the graph, this can be done.
Emnip, it looks something like this:
As I understand it, in one such "request" it will not be possible to implement complex arithmetic, that is, according to the wish in your question, service.total.a = service.type.host.a / service.group.c * service.group.d will contain a bunch of requests:
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question