]> git.openstreetmap.org Git - chef.git/commitdiff
Reduce sensitivity of fastly healthcheck alerts
authorTom Hughes <tom@compton.nu>
Thu, 28 Jul 2022 07:28:32 +0000 (08:28 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 28 Jul 2022 07:34:59 +0000 (08:34 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 30a14a471262afc886129a99075e15500452d144..32e536736f07b99c3d36d70bbd621007e0100a6a 100644 (file)
@@ -115,7 +115,12 @@ groups:
         annotations:
           error_rate: "{{ $value | humanizePercentage }}"
       - alert: fastly healthcheck failing
-        expr: fastly_healthcheck_status == 0
+        expr: count(fastly_healthcheck_status == 0) > 0
+        for: 15m
+        labels:
+          alertgroup: fastly
+      - alert: fastly healthcheck failing
+        expr: count(fastly_healthcheck_status == 0) > 4
         for: 5m
         labels:
           alertgroup: fastly