Skip to content

Commit cb98e8c

Browse files
committed
[jwt] fix alerts
1 parent 70cf6c0 commit cb98e8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deployments/prometheus/alerts/jwt-alerts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ groups:
2222
description: "JWT issuance p99 latency is {{ $value }}s (threshold: 0.5s)"
2323

2424
- alert: JWT_Revocation_Failures
25-
expr: rate(sms_auth_jwt_tokens_revoked_total{reason="database_error"}[5m]) > 0
25+
expr: rate(sms_auth_jwt_tokens_revoked_total{status="error"}[5m]) > 0
2626
for: 5m
2727
labels:
2828
severity: critical
@@ -32,7 +32,7 @@ groups:
3232
description: "JWT revocation database errors occurring at rate {{ $value }}/s"
3333

3434
- alert: JWT_Validation_Failures_High
35-
expr: rate(sms_auth_jwt_tokens_validated_total{status="error",reason=~"expired|revoked"}[5m]) / max(rate(sms_auth_jwt_tokens_validated_total[5m]), 0.00001) > 0.1
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
3636
for: 5m
3737
labels:
3838
severity: warning

0 commit comments

Comments
 (0)