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 <[email protected] <javascript:>> 
> 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 [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/6127ffce-02ad-48ed-b70e-b5d27daf1647o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/prometheus-users/6127ffce-02ad-48ed-b70e-b5d27daf1647o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

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

Reply via email to