[prometheus-users] Re: better way to get notified about (true) single scrape failures?

2023-05-09 Thread Christoph Anton Mitterer
Hey Brian. On Tuesday, May 9, 2023 at 9:55:22 AM UTC+2 Brian Candler wrote: That's tricky to get exactly right. You could try something like this (untested): expr: min_over_time(up[5m]) == 0 unless max_over_time(up[5m]) == 0 for: 5m - min_over_time will be 0 if any single scrape

[prometheus-users] Re: better way to get notified about (true) single scrape failures?

2023-05-09 Thread Brian Candler
That's tricky to get exactly right. You could try something like this (untested): expr: min_over_time(up[5m]) == 0 unless max_over_time(up[5m]) == 0 for: 5m - min_over_time will be 0 if any single scrape failed in the past 5 minutes - max_over_time will be 0 if all scrapes failed (which