From 11357424edb1ec4a7d37058ae74fd10637b28c52 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 30 Nov 2022 10:10:00 +0000 Subject: [PATCH] Add high CPU alarm for Juniper switches --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index c693bb3c0..95d3ebde2 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -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 -- 2.39.5