On 2022-08-16 15:08, BHARATH KUMAR wrote:
hello,

max_over_time(up[2d]) == 0 is giving me the info like ...for the last
two days if the server goes down for 1 minute also it was displaying
in the graph which I don't want. I want the information that for the
last "X" days it should be completely in an unreachable state.


So you are only wanting it if every single scrape failed over the past 2 days?

Try sum() instead of max_over_time().

--
Stuart Clark

--
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/9c67136f433aae5e60531df463901ca8%40Jahingo.com.

Reply via email to