64 lines
2.1 KiB
JSON
64 lines
2.1 KiB
JSON
{
|
|
"status": "success",
|
|
"data": {
|
|
"groups": [
|
|
{
|
|
"name": "messenger",
|
|
"file": "/etc/prometheus/alerts.yaml",
|
|
"rules": [
|
|
{
|
|
"state": "firing",
|
|
"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": [
|
|
{
|
|
"labels": {
|
|
"alertname": "HighErrorRate"
|
|
},
|
|
"annotations": {
|
|
"description": "Inspect API traces postgres.query and dependency status; restore DB.",
|
|
"summary": "HTTP 5xx > 5%"
|
|
},
|
|
"state": "firing",
|
|
"activeAt": "2026-12-06T19:29:51.478517494Z",
|
|
"value": "1e+00"
|
|
}
|
|
],
|
|
"health": "ok",
|
|
"evaluationTime": 0.001181699,
|
|
"lastEvaluation": "2026-12-06T19:30:06.481289503Z",
|
|
"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.000198032,
|
|
"lastEvaluation": "2026-12-06T19:30:06.482478312Z",
|
|
"type": "alerting"
|
|
}
|
|
],
|
|
"interval": 5,
|
|
"limit": 0,
|
|
"evaluationTime": 0.001419974,
|
|
"lastEvaluation": "2026-12-06T19:30:06.48125994Z"
|
|
}
|
|
]
|
|
}
|
|
} |