]> git.openstreetmap.org Git - chef.git/commitdiff
Change switch fan alerts to use junos exporter metrics
authorTom Hughes <tom@compton.nu>
Fri, 4 Aug 2023 10:34:55 +0000 (11:34 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 4 Aug 2023 10:34:55 +0000 (11:34 +0100)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index f52f8774873ed5b0e791b7e5f18270b9c6537068..7974547cb59ed612145881c9348f99ec2f8355c7 100644 (file)
@@ -280,7 +280,7 @@ groups:
         annotations:
           load_average: "{{ $value | humanizePercentage }}"
       - alert: juniper fan alarm
         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 }}"
         for: 5m
         labels:
           alertgroup: "{{ $labels.site }}"