]> git.openstreetmap.org Git - chef.git/commitdiff
Revert workarounds for intermittent SNMP monitoring
authorTom Hughes <tom@compton.nu>
Wed, 30 Nov 2022 10:08:41 +0000 (10:08 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 30 Nov 2022 10:08:41 +0000 (10:08 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index 8c1aeee48bea93bfc9ec168c698b0ac45babdbb5..c693bb3c059e552bb62aec5d8f29a15e3090ff37 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: jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running.*"} > 0
         for: 5m
         labels:
           alertgroup: "{{ $labels.site }}"
       - alert: juniper power alarm
-        expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!~"running.*"}[6m]) > 0
+        expr: jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!~"running.*"} > 0
         for: 5m
         labels:
           alertgroup: "{{ $labels.site }}"