]> git.openstreetmap.org Git - chef.git/commitdiff
Add alerts for degraded raid arrays and failed raid disks
authorTom Hughes <tom@compton.nu>
Mon, 25 Jul 2022 11:52:28 +0000 (12:52 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 25 Jul 2022 11:52:28 +0000 (12:52 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index c108451abe8e362b103e58f24e8a14aef9351613..23bb157e475be3098725eeb230a4cde2b759d1de 100644 (file)
@@ -422,6 +422,18 @@ groups:
           alertgroup: "{{ $labels.instance }}"
         annotations:
           queries: "{{ $value }}"
+  - name: raid
+    rules:
+      - alert: raid array degraded
+        expr: ohai_array_info{status="degraded"} > 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.instance }}"
+      - alert: raid disk failed
+        expr: ohai_disk_info{status="failed"} > 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.instance }}"
   - name: smart
     rules:
       - alert: smart failure