Skip to content

Commit 53baff7

Browse files
committed
[jwt] improve alerts
1 parent ce6ead4 commit 53baff7

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

deployments/prometheus/alerts/jwt-alerts.yml

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ groups:
22
- name: jwt-alerts
33
rules:
44
- alert: JWT_Validation_ErrorRate_High
5-
expr: rate(sms_auth_jwt_tokens_validated_total{status="error"}[5m]) / clamp_min(rate(sms_auth_jwt_tokens_validated_total[5m]), 1e-9) > 0.1
5+
expr: rate(sms_auth_jwt_tokens_validated_total{status="error"}[5m]) / max(rate(sms_auth_jwt_tokens_validated_total[5m]), 0.00001) > 0.1
66
for: 5m
77
labels:
88
severity: warning
@@ -30,13 +30,3 @@ groups:
3030
annotations:
3131
summary: "JWT revocation failures detected"
3232
description: "JWT revocation errors occurring at rate {{ $value }}/s"
33-
34-
- alert: JWT_Validation_Failures_High
35-
expr: rate(sms_auth_jwt_tokens_validated_total{status="error"}[5m]) / max(rate(sms_auth_jwt_tokens_validated_total[5m]), 0.00001) > 0.1
36-
for: 5m
37-
labels:
38-
severity: warning
39-
service: jwt
40-
annotations:
41-
summary: "High JWT validation failure rate"
42-
description: "JWT validation failure rate is {{ $value | humanizePercentage }} (threshold: 10%)"

0 commit comments

Comments
 (0)