]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
Decrease threshold for SSD wearout alerting
[chef.git] / cookbooks / prometheus / templates / default / alert_rules.yml.erb
index 30a14a471262afc886129a99075e15500452d144..5809b570b263a629f0115b62db83cbb9d8832b29 100644 (file)
@@ -1,4 +1,4 @@
-# DO NOT EDIT - This file is being maintained by Chef
+c# DO NOT EDIT - This file is being maintained by Chef
 
 groups:
   - name: amsterdam
@@ -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
@@ -447,7 +452,7 @@ groups:
         labels:
           alertgroup: "{{ $labels.instance }}"
       - alert: smart ssd wearout approaching
-        expr: smart_percentage_used >= 90
+        expr: smart_percentage_used >= 80
         for: 60m
         labels:
           alertgroup: "{{ $labels.instance }}"