]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
systemd: fix typo in template
[chef.git] / cookbooks / prometheus / templates / default / alert_rules.yml.erb
index 6c8078e45e1310905342029197e303d2c2ac7073..ebcb59f9c131ec823a3707e85d77df73ba108521 100644 (file)
@@ -555,7 +555,7 @@ groups:
         labels:
           alertgroup: "{{ $labels.instance }}"
         annotations:
-          new_ercrors: "{{ $value }}"
+          new_errors: "{{ $value }}"
   - name: smart
     rules:
       - alert: smart failure
@@ -570,6 +570,15 @@ groups:
           alertgroup: "{{ $labels.instance }}"
         annotations:
           percentage_used: "{{ $value | humanizePercentage }}"
+  - name: snmp
+    rules:
+      - alert: snmp pdus missing
+        expr: max_over_time(snmp_scrape_pdus_returned[1d]) - snmp_scrape_pdus_returned > 0
+        for: 15m
+        labels:
+          alertgroup: snmp
+        annotations:
+          missing_pdus: "{{ $value }}"
   - name: ssl
     rules:
       - alert: ssl certificate probe failed