]> git.openstreetmap.org Git - chef.git/commitdiff
Add high CPU alarm for Juniper switches
authorTom Hughes <tom@compton.nu>
Wed, 30 Nov 2022 10:10:00 +0000 (10:10 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 30 Nov 2022 10:10:00 +0000 (10:10 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index c693bb3c059e552bb62aec5d8f29a15e3090ff37..95d3ebde203aad27dfb983cdd4704afe72bb36a3 100644 (file)
@@ -246,6 +246,11 @@ groups:
           alertgroup: "{{ $labels.instance }}"
   - name: juniper
     rules:
+      - alert: juniper cpu alarm
+        expr: jnxOperatingCPU{jnxOperatingContentsIndex="7"} > 30
+        for: 5m
+        labels:
+          alertgroup: "{{ $labels.site }}"
       - alert: juniper fan alarm
         expr: jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running.*"} > 0
         for: 5m