Re: [prometheus-users] How to check exporter down time in 1 week

2020-07-06 Thread sayf eddine Hammemi
rate() was an example, dont use it in your case

On Tue, Jul 7, 2020 at 6:21 AM Jack Chew  wrote:

> I try rate(up{idc="azure"}[5m] offset 1w) and then all value is 0. I need
> check the node within 1 week down time(up==0).
>
> 在 2020年7月6日星期一 UTC+8下午3:23:56,sayf eddine Hammemi写道:
>>
>> Hello, you can use offset to go back in time given you have enabled data
>> retention for at least one week
>> Exp: rate(http_requests_total[5m] offset 1w) (change it accordingly to
>> your metrics)
>>
>> On Mon, Jul 6, 2020 at 9:18 AM Jack Chew  wrote:
>>
>>> Hey guys,
>>>
>>>
>>>How i check up == 0 in 1week accourd  by instacne.
>>>
>>>
>>> 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 promethe...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/prometheus-users/6127ffce-02ad-48ed-b70e-b5d27daf1647o%40googlegroups.com
>>> 
>>> .
>>>
>> --
> 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/42464747-6a2d-47bb-a174-3b81840c7278o%40googlegroups.com
> 
> .
>

-- 
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/CALnV8WiDNCUW%3Da34aVB55vQdNvvOSyNY9wOwicDUDORoUDaE7w%40mail.gmail.com.


Re: [prometheus-users] How to check exporter down time in 1 week

2020-07-06 Thread Jack Chew
I try rate(up{idc="azure"}[5m] offset 1w) and then all value is 0. I need 
check the node within 1 week down time(up==0).

在 2020年7月6日星期一 UTC+8下午3:23:56,sayf eddine Hammemi写道:
>
> Hello, you can use offset to go back in time given you have enabled data 
> retention for at least one week
> Exp: rate(http_requests_total[5m] offset 1w) (change it accordingly to 
> your metrics)
>
> On Mon, Jul 6, 2020 at 9:18 AM Jack Chew > 
> wrote:
>
>> Hey guys,
>>
>>
>>How i check up == 0 in 1week accourd  by instacne.
>>
>>
>> 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 promethe...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/6127ffce-02ad-48ed-b70e-b5d27daf1647o%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/42464747-6a2d-47bb-a174-3b81840c7278o%40googlegroups.com.


Re: [prometheus-users] How to check exporter down time in 1 week

2020-07-06 Thread sayf eddine Hammemi
Hello, you can use offset to go back in time given you have enabled data
retention for at least one week
Exp: rate(http_requests_total[5m] offset 1w) (change it accordingly to your
metrics)

On Mon, Jul 6, 2020 at 9:18 AM Jack Chew  wrote:

> Hey guys,
>
>
>How i check up == 0 in 1week accourd  by instacne.
>
>
> 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 prometheus-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/6127ffce-02ad-48ed-b70e-b5d27daf1647o%40googlegroups.com
> 
> .
>

-- 
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/CALnV8WjgscxSMFPZ2bJcpJhrg6nEZm7eB4mOpoiQbXK06cWF4w%40mail.gmail.com.


[prometheus-users] How to check exporter down time in 1 week

2020-07-06 Thread Jack Chew
Hey guys,


   How i check up == 0 in 1week accourd  by instacne.


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 prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6127ffce-02ad-48ed-b70e-b5d27daf1647o%40googlegroups.com.