From 38df188a80a99f6d0bac9a88ce0454259dfa0f8b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Fri, 4 Aug 2023 11:34:55 +0100 Subject: [PATCH] Change switch fan alerts to use junos exporter metrics --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index f52f87748..7974547cb 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -280,7 +280,7 @@ groups: 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 }}" -- 2.39.5