]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
Add a module label to snmp metrics
[chef.git] / cookbooks / prometheus / templates / default / alert_rules.yml.erb
index e3fa634ea68d3ea46234e7d45468ea13190ac7b8..9522dbf6ba1b8eefdc11306c8417b2748f96bf57 100644 (file)
@@ -247,12 +247,12 @@ groups:
   - name: juniper
     rules:
       - alert: juniper fan alarm
-        expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running"}[6m]) > 0
+        expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running.*"}[6m]) > 0
         for: 5m
         labels:
           alertgroup: "{{ $labels.site }}"
       - alert: juniper power alarm
-        expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!~"running"}[6m]) > 0
+        expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!~"running.*"}[6m]) > 0
         for: 5m
         labels:
           alertgroup: "{{ $labels.site }}"