Skip to content

Commit

Permalink
Only fire the SLO alert if the alert threshold is above 0.
Browse files Browse the repository at this point in the history
The alert threshold is at 0 if there's no traffic.
  • Loading branch information
jaqx0r committed May 16, 2023
1 parent 2b06da3 commit bfa5290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prom/slo.rules.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,4 @@ groups:

# The thing we've all been waiting for, the alert itself.
- alert: SLOBurnRateExceeded
expr: slo_burn_rate >= alert_threshold
expr: slo_burn_rate >= alert_threshold and alert_threshold > 0

0 comments on commit bfa5290

Please sign in to comment.