How to check exporter down time in 1 week

23 views
Skip to first unread message

Jack Chew

unread,
Jul 6, 2020, 3:18:21 AM7/6/20
to Prometheus Users
Hey guys,


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


Thanks

sayf eddine Hammemi

unread,
Jul 6, 2020, 3:23:56 AM7/6/20
to Jack Chew, Prometheus Users
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)

--
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-use...@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.

Jack Chew

unread,
Jul 7, 2020, 12:21:25 AM7/7/20
to Prometheus Users
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 <jack...@gmail.com> 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.

sayf eddine Hammemi

unread,
Jul 7, 2020, 12:45:17 AM7/7/20
to Jack Chew, Prometheus Users
rate() was an example, dont use it in your case

To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@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.
Reply all
Reply to author
Forward
0 new messages