Files
mtusi2026lab7/infra/alerts.yml
T
amin 2fae615742
Skeleton contracts / contracts (pull_request) Blocked by required conditions
Выполнение лабораторной работы номер 7
2026-12-04 18:15:18 +03:00

18 lines
657 B
YAML

groups:
- name: messenger
rules:
- alert: HighHTTPErrorRate
expr: sum(rate(messenger_http_requests_total{status_class="5xx",route!~"/health/.*"}[1m])) / clamp_min(sum(rate(messenger_http_requests_total{route!~"/health/.*"}[1m])),0.001) > 0.05
for: 10s
labels:
severity: warning
annotations:
summary: API errors above 5 percent
- alert: OldAttachmentJob
expr: max(messenger_queue_oldest_seconds{service_name="messenger-dispatcher"}) > 15
for: 10s
labels:
severity: warning
annotations:
summary: Attachment backlog older than 15 seconds