Files
mtusi2026lab7/obs/alerts.yaml
T
wanderinho 7ee5192cbd
Skeleton contracts / contracts (pull_request) Blocked by required conditions
ЛР7 - БПИ2303 - Стругов - на 4
2026-12-06 23:11:49 +03:00

12 lines
607 B
YAML

groups:
- name: messenger
rules:
- alert: HighErrorRate
expr: (sum(rate(http_requests_total{status_class="5xx"}[1m])) or vector(0)) / clamp_min(sum(rate(http_requests_total[1m])), 0.001) > 0.05
for: 15s
annotations: {summary: 'HTTP 5xx > 5%', description: 'Inspect API traces postgres.query and dependency status; restore DB.'}
- alert: QueueLag
expr: max(queue_oldest_age_seconds) > 20
for: 10s
annotations: {summary: 'Oldest outstanding job > 20s', description: 'Inspect worker availability, consumer traces and backlog; restore worker.'}