forked from mtusi2026/mtusi2026lab6
Собрать наблюдаемый стенд, чтобы причину деградации API и worker было видно по метрикам, логам и трассам.
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"started": "2026-11-06T21:40:04Z",
|
||||
"retry_upload": {
|
||||
"final_status": "ready",
|
||||
"log": {
|
||||
"event": "job.ready",
|
||||
"attempt": 1,
|
||||
"trace_id": "40c8e289c22994a3c786030354799554",
|
||||
"span_id": "606017e0d8c6f6b5",
|
||||
"service": "messenger-worker"
|
||||
},
|
||||
"consume_spans": 1,
|
||||
"span_names": [
|
||||
"POST /api/v1/chats/{chat_id}/attachments",
|
||||
"db.transaction",
|
||||
"db.transaction",
|
||||
"s3.put",
|
||||
"db.transaction",
|
||||
"db.transaction",
|
||||
"attachment.process publish",
|
||||
"attachment.process consume",
|
||||
"db.transaction",
|
||||
"s3.get",
|
||||
"s3.put",
|
||||
"s3.put",
|
||||
"db.transaction"
|
||||
],
|
||||
"parents_linked": true
|
||||
},
|
||||
"warmup": {
|
||||
"200": 180
|
||||
},
|
||||
"alerts_after_warmup": {},
|
||||
"short_spike": {
|
||||
"500": 20
|
||||
},
|
||||
"alerts_after_short_spike": {
|
||||
"ApiHighErrorRate": "pending",
|
||||
"ApiErrorBudgetSlowBurn": "pending"
|
||||
},
|
||||
"recovery_after_spike": {
|
||||
"200": 40
|
||||
},
|
||||
"fast_burn_detected_after_seconds": 51.6,
|
||||
"alerts_when_fast_burn_fired": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiErrorBudgetSlowBurn": "firing",
|
||||
"ApiErrorBudgetFastBurn": "firing"
|
||||
},
|
||||
"sustained_counts_until_detection_or_timeout": {
|
||||
"500": 104
|
||||
},
|
||||
"fast_burn_resolved_after_seconds": 70.6,
|
||||
"alerts_after_resolve": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiErrorBudgetSlowBurn": "firing"
|
||||
},
|
||||
"worker_stopped": {
|
||||
"consumers_firing_after_seconds": null,
|
||||
"queue_lag_firing_after_seconds": 0.0,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiErrorBudgetSlowBurn": "firing",
|
||||
"QueueLagHigh": "firing"
|
||||
}
|
||||
},
|
||||
"worker_restored": {
|
||||
"consumers_cleared_after_seconds": 0.0,
|
||||
"alerts": {
|
||||
"ApiHighErrorRate": "firing",
|
||||
"ApiErrorBudgetSlowBurn": "firing",
|
||||
"QueueLagHigh": "firing"
|
||||
}
|
||||
},
|
||||
"latency_note": "db_slow_ms sleeps inside db.transaction; handler_slow_ms sleeps in the HTTP span and outside that span",
|
||||
"tempo_stopped": {
|
||||
"api_results": {
|
||||
"200": 16
|
||||
},
|
||||
"failed_spans_before": [
|
||||
"0"
|
||||
],
|
||||
"failed_spans_after": [
|
||||
"0"
|
||||
],
|
||||
"collector_memory": "67.75MiB / 320MiB"
|
||||
},
|
||||
"finished": "2026-11-06T21:48:01Z"
|
||||
}
|
||||
Reference in New Issue
Block a user