From: Tom Hughes Date: Mon, 6 Mar 2023 00:21:06 +0000 (+0000) Subject: Fix statuscake alerts X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/3e078bc66a67f35c3737ebe6be5cddd9cf2328de Fix statuscake alerts --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index 7a5353372..848123602 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -611,7 +611,7 @@ groups: - name: statuscake rules: - alert: statuscake uptime check failing - expr: statuscake_uptime{status="down",paused="false"} > 0 + expr: statuscake_paused == 0 and statuscake_up == 0 for: 10m labels: alertgroup: statuscake