From 623831e199989cd380850026fef07c236a31776b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 12 Jun 2023 17:01:58 +0100 Subject: [PATCH] Fix threshold for juniper load average alarm --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index f7b35990a..8956104a8 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -249,10 +249,12 @@ groups: - name: juniper rules: - alert: juniper cpu alarm - expr: jnxOperating5MinLoadAvg{jnxOperatingContentsIndex="9"} > 50 + expr: jnxOperating5MinLoadAvg{jnxOperatingContentsIndex="9"} / 200 > 0.5 for: 5m labels: alertgroup: "{{ $labels.site }}" + annotations: + load_average: "{{ $value | humanizePercentage }}" - alert: juniper fan alarm expr: jnxOperatingState{jnxOperatingContentsIndex="4",jnxOperatingState!~"running.*"} > 0 for: 5m -- 2.39.5