forked from mtusi2026/mtusi2026lab6
916 B
916 B
API error / availability SLI
- Grafana → Lab6 → API overview. Check
slo:api_error_ratio:5mand the edge panel; 5xx at HAProxy is the SLI, API-side 5xx is diagnostic. - Prometheus → Status → Targets:
haproxy,otel-collector,rabbitmqmust be UP. If HAProxy is DOWN, no edge SLI exists; inspectdocker compose ps lb. - HAProxy stats
http://127.0.0.1:8404/stats: look for DOWN replicas andcheckerrors. A staleX-Instance-Idis the stopped replica. - If all replicas are DOWN, check
/health/readyof one replica (5xx means DB/S3 dependency) and PostgreSQL logs. - For a slow handler, open a Tempo trace from the error panel; DB child span (
SELECT/INSERT/UPDATE/BEGIN/COMMIT) duration vs HTTP span shows whether PostgreSQL or the handler is slow. Correlatetrace_idin Loki. - Recover DB/S3, wait for HAProxy
rise 2, then verify a 2xx through the LB and resolved alert.