Собрать наблюдаемый стенд, чтобы причину деградации API и worker было видно по метрикам, логам и трассам.

This commit is contained in:
2026-11-07 01:36:19 +03:00
parent 470d9d6f1e
commit 7d4e1237a3
56 changed files with 4419 additions and 53 deletions
+11
View File
@@ -0,0 +1,11 @@
# Time to ready
SLO: 95% of attachments that reach `ready` do so within 10 seconds of durable acceptance.
The series is `messenger_attachment_time_to_ready_seconds`, a histogram in seconds.
`AttachmentReadyLatencyHigh` uses `histogram_quantile(0.95, ...)` over 15 minutes and pages after 2 minutes above 10 seconds.
This SLO does not see jobs that never finish. Pair it with queue age.
1. If p95 is high and queue age is low, open a worker trace and compare `s3.put`, `s3.get`, and `db.transaction`.
2. A retry span with `attempt > 1` and event `retry` means the first attempt was transient. The successful attempt should still contain S3 and the ready update.
3. If p95 is quiet but users wait, read queue age. The worker is likely stopped or stuck before completion.