Hi,

I am looking for a solution to calculate the total duration of each firing
alert  since it started firing. Following is the query I tried, but i see
the value for all the firing alert is 86400

(avg_over_time(customer_ALERTS{alertstate="firing",severity="critical"}[24h]))
*24 * 3600

Can somebody confirm if the query I used is right or  please guide me to
derive the right value.

Once I have the right query, then the next step is to visualize in Grafana
with two columns, one with the alert name and then the duration for each
alert name.

Regards,
Shilpa

-- 
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/CA%2BW8-JZoYmc1YtXJBF2hKT%3D7Bof5mZApLP1Vz8uqRtmu-xe_Kg%40mail.gmail.com.

Reply via email to