Files
mtusi2026lab6/infra/otel/runbooks.md
T

28 lines
1.2 KiB
Markdown

# Runbooks
## API high error rate
1. In Grafana, compare the 5xx ratio with `db_client_*` pool metrics.
2. Open a failed server span in Tempo and inspect child JDBC/Redis/S3 spans.
3. Search Loki by the trace ID. Do not search by a user, chat or message ID.
4. Restore the failing dependency and confirm the alert resolves after the five-minute window.
## Queue lag
1. Check `messenger_queue_depth` and `messenger_queue_oldest_job_age_seconds`.
2. Check worker busy/capacity and the rate of `messenger_jobs_processed_total` by outcome.
3. Search worker errors in Loki, then open the linked consumer trace in Tempo.
4. Restore or scale the worker and confirm depth and age return to zero.
## Worker saturation
1. Compare busy/capacity with job duration p95 and container CPU/RAM.
2. Inspect slow consumer spans and their S3/JDBC children.
3. Remove the bottleneck before increasing concurrency; memory is explicitly bounded.
## Telemetry backend
1. Inspect Collector exporter failure and queue metrics on port 8888 through Prometheus.
2. Restore Loki or Tempo. Collector retries for at most 60 seconds with a 2048-item queue.
3. Confirm the application remained available; telemetry loss is allowed and bounded.