From c954aeff2861e3c9fcd8e236f08a2b15f4a00202 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 Mar 2023 08:26:59 +0000 Subject: [PATCH] Relax thresholds for packet loss reporting --- cookbooks/prometheus/templates/default/alert_rules.yml.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cookbooks/prometheus/templates/default/alert_rules.yml.erb b/cookbooks/prometheus/templates/default/alert_rules.yml.erb index f79438182..cb8d91e99 100644 --- a/cookbooks/prometheus/templates/default/alert_rules.yml.erb +++ b/cookbooks/prometheus/templates/default/alert_rules.yml.erb @@ -587,8 +587,8 @@ groups: - name: smokeping rules: - alert: packet loss - expr: 1 - (rate(smokeping_response_duration_seconds_count[5m]) / rate(smokeping_requests_total[5m])) > 0 - for: 5m + expr: 1 - (rate(smokeping_response_duration_seconds_count[5m]) / rate(smokeping_requests_total[5m])) > 0.02 + for: 10m labels: alertgroup: smokeping annotations: -- 2.39.5