]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/prometheus/templates/default/alert_rules.yml.erb
Correct scaling for junos load average alerts
[chef.git] / cookbooks / prometheus / templates / default / alert_rules.yml.erb
index f52f8774873ed5b0e791b7e5f18270b9c6537068..2678f5e1a26aa4ceb2832bdcde1b837b6ffb0fbf 100644 (file)
@@ -273,14 +273,14 @@ groups:
   - name: juniper
     rules:
       - alert: juniper cpu alarm
-        expr: junos_route_engine_load_average_five > 0.5
+        expr: junos_route_engine_load_average_five / 2 > 0.5
         for: 5m
         labels:
           alertgroup: "{{ $labels.site }}"
         annotations:
           load_average: "{{ $value | humanizePercentage }}"
       - alert: juniper fan alarm
-        expr: jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running.*"} > 0
+        expr: junos_environment_fan_up != 1
         for: 5m
         labels:
           alertgroup: "{{ $labels.site }}"