yeah. I want only that the servers are down for the whole two days. Its value should always be zero(0) throughout the last 'X' days.
But max_over_time is giving me the info if the servers are down for even one minute from the last 'X' days. Thanks & regards, Bharath kumar. On Tuesday, 16 August 2022 at 20:27:30 UTC+5:30 Stuart Clark wrote: > 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/f4ab23e7-faf6-4e35-a15c-af84f799a375n%40googlegroups.com.

