]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
Only alert for readonly filesystems which were recently writable
[chef.git] / 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 }}"