]> git.openstreetmap.org Git - chef.git/commitdiff
Add alert rules for juniper switches
authorTom Hughes <tom@compton.nu>
Thu, 21 Jul 2022 16:34:43 +0000 (17:34 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 21 Jul 2022 16:34:43 +0000 (17:34 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 289b33f572059289ef5f8dd7dc7d8a27b3faee3d..96f7fdb0248045de20c050d159a8e5f18eef681a 100644 (file)
@@ -207,6 +207,18 @@ groups:
         for: 5m
         labels:
           alertgroup: "{{ $labels.instance }}"
+  - name: juniper
+    rules:
+      - alert: juniper fan alarm
+        expr: jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!="running"} > 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.site }}"
+      - alert: juniper power alarm
+        expr: jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!="running"} > 0
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.site }}"
   - name: mail
     rules:
       - alert: exim queue length