Hello everyone.

I was wondering if I could get some help on a query I'm building.

I have a dashboard, which shows server failure restarts over a period of 
time defined by Grafana's time period selector.

It's a counter, so it shows something like this:

           3 |
           2 |             2       
count 1 |_1__1_____1_ 
                 1    2   3    4  days

So over the days, the number of restarts. Now, is it possible to get a 
single number out of this which sums these numbers up? So like, get the 
number 5. 1 + 1 + 2 + 1.

I would like to display that in a state graph by grafana, which would be 
just a single number. Just to see something like, in total there were 5 
restarts these past 4 days.

Also, another difficulty is that this needs to be without instance and 
pods. ( the environment is kubernetes ) to remove duplicate reports. I 
think. :)

Thanks for ANY advice on this. Now I know that promql is a sliding query 
engine, so what I'm asking might actually not be possible at all. In that 
case, please tell me, and I'll try to look for another solution.

Thanks!
Gergely.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/50e1359b-3e4e-4d78-ba37-6e4d4b101b7cn%40googlegroups.com.

Reply via email to