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

51 lines
1.6 KiB
JSON

{
"status": "success",
"data": {
"groups": [
{
"name": "messenger",
"file": "/etc/prometheus/alerts.yaml",
"rules": [
{
"state": "inactive",
"name": "HighErrorRate",
"query": "(sum(rate(http_requests_total{status_class=\"5xx\"}[1m])) or vector(0)) / clamp_min(sum(rate(http_requests_total[1m])), 0.001) > 0.05",
"duration": 15,
"keepFiringFor": 0,
"labels": {},
"annotations": {
"description": "Inspect API traces postgres.query and dependency status; restore DB.",
"summary": "HTTP 5xx > 5%"
},
"alerts": [],
"health": "ok",
"evaluationTime": 0.001099849,
"lastEvaluation": "2026-12-06T19:31:16.481833749Z",
"type": "alerting"
},
{
"state": "inactive",
"name": "QueueLag",
"query": "max(queue_oldest_age_seconds) > 20",
"duration": 10,
"keepFiringFor": 0,
"labels": {},
"annotations": {
"description": "Inspect worker availability, consumer traces and backlog; restore worker.",
"summary": "Oldest outstanding job > 20s"
},
"alerts": [],
"health": "ok",
"evaluationTime": 0.000232965,
"lastEvaluation": "2026-12-06T19:31:16.482940179Z",
"type": "alerting"
}
],
"interval": 5,
"limit": 0,
"evaluationTime": 0.00138221,
"lastEvaluation": "2026-12-06T19:31:16.481797425Z"
}
]
}
}