]> git.openstreetmap.org Git - chef.git/commitdiff
Fix wildcard match for Juniper fan state
authorTom Hughes <tom@compton.nu>
Tue, 15 Nov 2022 21:30:09 +0000 (21:30 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 15 Nov 2022 21:30:09 +0000 (21:30 +0000)
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 }}"