]> git.openstreetmap.org Git - chef.git/commitdiff
Add a prometheus alert for hosts shown as down by StatusCake
authorTom Hughes <tom@compton.nu>
Mon, 18 Jul 2022 17:46:22 +0000 (18:46 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 18 Jul 2022 18:17:46 +0000 (19:17 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index e90c0f74e0239553885435cfefb1174a3666cf38..b928520ed2756af7c741e5f8c446e0874e63e47c 100644 (file)
@@ -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