[image: up.PNG]
this is the query I am using and the above graph is for 30 days and it is 
down from the last day. I want the servers that are down for the whole 30 
days
On Wednesday, 17 August 2022 at 12:55:48 UTC+5:30 Brian Candler wrote:

> Extraordinary claims require extraordinary evidence.
>
> I don't believe there's a bug in prometheus: I believe there's a bug in 
> how you are using it.  But unless you show the data, there's no way to 
> demonstrate this.
>
> On Wednesday, 17 August 2022 at 04:36:43 UTC+1 chembakay...@gmail.com 
> wrote:
>
>>
>> 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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/bd1f6949-c476-41b9-9c05-13551b486922n%40googlegroups.com.

Reply via email to