Создала 3 коротких runbook

This commit is contained in:
vasyukova
2026-10-24 22:19:07 +03:00
parent 468913998e
commit d29163bed4
3 changed files with 51 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
# Alert: MessengerUploadLatencyHigh
## Симптомы
- p95 длительности POST `/api/v1/chats/{id}/attachments` > 2s.
## Диагностика
1. Grafana: p95 по route `/api/v1/chats/{id}/attachments`.
2. Tempo: trace `POST /api/v1/chats/{id}/attachments` — найти самый долгий
child span (`put_object` в S3 или `INSERT` в postgres).
3. Loki: `{service_name="messenger-api"} |= "event=http" |~ "attachments"`.
## Действие
- Если виноват S3 — проверить `docker compose ps minio`.
- Если БД — увеличить `max_size` пула или `statement_timeout`.
- Если телеметрия — переключить sampling (см. TRACK1).