Hello,
I'd like to get the total time a metric spends at a particular value.
For example, 
With a gauge, initially set to 0, set the value to 1 when a particular 
issue arises. I have an alert for when the value > 0. Once the issue is 
resolved, this gauge goes back to 0.
Now I can use:
floor(changes(issue[10m])/2), to get the number of times I ran into this 
issue.

Question:
How do I get the total time spend in that state/value? That way I know how 
long I spend trying to resolve the issue.

Thanks!

-- 
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/e75b07aa-5fa4-4518-acf0-1eb7a62c7854n%40googlegroups.com.

Reply via email to