]> git.openstreetmap.org Git - chef.git/commitdiff
Extend lookback for juniper alerts
authorTom Hughes <tom@compton.nu>
Wed, 26 Oct 2022 22:00:07 +0000 (23:00 +0100)
committerTom Hughes <tom@compton.nu>
Wed, 26 Oct 2022 22:00:07 +0000 (23:00 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index b49a274af94591e122f3bb2452c41f382ad93ac3..591f8632772a2e3193adce07c84ce0d12d2de24a 100644 (file)
@@ -247,12 +247,12 @@ groups:
   - name: juniper
     rules:
       - alert: juniper fan alarm
-        expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!="running"}[5m]) > 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"}[5m]) > 0
+        expr: sum_over_time(jnxOperatingState{jnxOperatingContentsIndex="2",jnxOperatingState!="running"}[6m]) > 0
         for: 5m
         labels:
           alertgroup: "{{ $labels.site }}"