]> git.openstreetmap.org Git - chef.git/commitdiff
Only alert for readonly filesystems which were recently writable
authorTom Hughes <tom@compton.nu>
Sat, 10 Dec 2022 12:14:03 +0000 (12:14 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 10 Dec 2022 12:14:03 +0000 (12:14 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 149ff86bc6580b515b333b3ba86dd3dcf7339925..16496c12d0887aec40f6ead0702b45ea8e962834 100644 (file)
@@ -157,7 +157,7 @@ groups:
   - name: filesystem
     rules:
       - alert: readonly filesystem
-        expr: node_filesystem_readonly == 1
+        expr: node_filesystem_readonly > min_over_time(node_filesystem_readonly[7d])
         for: 0m
         labels:
           alertgroup: "{{ $labels.instance }}"