]> git.openstreetmap.org Git - chef.git/commitdiff
Relax thresholds for packet loss reporting
authorTom Hughes <tom@compton.nu>
Thu, 9 Mar 2023 08:26:59 +0000 (08:26 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Mar 2023 12:47:12 +0000 (12:47 +0000)
cookbooks/prometheus/templates/default/alert_rules.yml.erb

index f794381820a4c7971e566990c264b877cf832aa4..cb8d91e99444379eb24b51336e86b4f24c9373ea 100644 (file)
@@ -587,8 +587,8 @@ groups:
   - name: smokeping
     rules:
       - alert: packet loss
   - 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:
         labels:
           alertgroup: smokeping
         annotations: