Создала .yaml-файлы infra\grafana\provisioning\alerting
This commit is contained in:
@@ -4,16 +4,16 @@ groups:
|
||||
rules:
|
||||
- alert: MessengerHighErrorRate
|
||||
expr: |
|
||||
sum(rate(http_requests_total{http_status_class="5xx"}[5m]))
|
||||
sum(rate(http_requests_total{http_status_class="5xx"}[1m]))
|
||||
/
|
||||
sum(rate(http_requests_total[5m]))
|
||||
sum(rate(http_requests_total[1m]))
|
||||
> 0.05
|
||||
for: 2m
|
||||
for: 30s
|
||||
labels:
|
||||
severity: warning
|
||||
annotations:
|
||||
summary: "API error rate > 5% over 5m"
|
||||
description: "5xx ratio exceeds SLO 5% for 2 minutes."
|
||||
summary: "API error rate > 5% over 1m"
|
||||
description: "5xx ratio exceeds SLO 5% for 30 seconds."
|
||||
runbook: "infra/runbooks/high-error-rate.md"
|
||||
|
||||
- alert: MessengerJobsBacklogGrowing
|
||||
|
||||
Reference in New Issue
Block a user