Adding different metricies in grafana from prometheus
12,443
For the singlestat panel, you can just sum the two metrics and then add them together. Here is an example with two different metrics:
sum(prometheus_local_storage_memory_series) + sum(counters_logins)
Recommended reading, just in case you are doing anything with rates as well: https://www.robustperception.io/rate-then-sum-never-sum-then-rate/
Author by
rajshree
Updated on June 17, 2022Comments
-
rajshree almost 2 years
I have different metrices in prometheus
counter_metrics a
,couneter_metrices b
and I want a singlestat for the count of all the different request metrics.How am I able to fetch this?
(sum(couneter_metrics{instance="a,job="b"}))+