From: Tom Hughes Date: Mon, 18 Jul 2022 17:46:22 +0000 (+0100) Subject: Add a prometheus alert for hosts shown as down by StatusCake X-Git-Url: https://git.openstreetmap.org./chef.git/commitdiff_plain/2fb1b5fe069034178b0d1426bba953e7b3a661ad Add a prometheus alert for hosts shown as down by StatusCake --- diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index e90c0f74e..b928520ed 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -403,6 +403,13 @@ groups: for: 0m labels: alertgroup: ssl + - name: statuscake + rules: + - alert: statuscake uptime check failing + expr: statuscake_uptime{status="down",paused="false"} > 0 + for: 0m + labels: + alertgroup: statuscake - name: systemd rules: - alert: systemd failed service