Перенесла файлы проекта из предыдущей лабораторной работы

This commit is contained in:
vasyukova
2026-11-04 22:30:42 +03:00
parent 20afc2c790
commit e9a7a7e793
70 changed files with 8588 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).