51 lines
1.6 KiB
JSON
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.001103029,
|
|
"lastEvaluation": "2026-12-06T19:29:11.481878195Z",
|
|
"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.000365149,
|
|
"lastEvaluation": "2026-12-06T19:29:11.482988745Z",
|
|
"type": "alerting"
|
|
}
|
|
],
|
|
"interval": 5,
|
|
"limit": 0,
|
|
"evaluationTime": 0.001520485,
|
|
"lastEvaluation": "2026-12-06T19:29:11.48183778Z"
|
|
}
|
|
]
|
|
}
|
|
} |