feat: add SLOs, Prometheus alert rules and telemetry loss accounting
HAProxy /metrics scraped by the Collector, recording rules and seven alerts with promtool tests and runbooks (make alerts_test, CI step), byte-sized Collector export queues with 30 s retries, SDK internal metrics, SLO/LB/pipeline dashboard rows, driver commands alerts-check and backend-outage (change slo-alerts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -117,6 +117,16 @@ paths:
|
||||
/lb/ready` (503, если готовых реплик нет). Только внутри сети
|
||||
compose, наружу не публикуется; оператору — `make lb_stats` (CSV
|
||||
читается изнутри контейнера LB).
|
||||
- С design change `slo-alerts` (решение 2) там же `/metrics` — встроенный
|
||||
экспортёр Prometheus (`http-request use-service prometheus-exporter`).
|
||||
Забирает его **только Collector** (приёмник `prometheus/haproxy`,
|
||||
`scope=frontend&scope=backend`, отбор имён в `collector.yaml`), Prometheus
|
||||
получает ряды с `job="haproxy"` у экспортёра Collector: LB не входит в
|
||||
сеть `telemetry`, Prometheus — в сеть приложения. Порт не публиковать,
|
||||
уровень `server` (адреса реплик в метках) не забирать. Ответы самого LB
|
||||
(502, 503, 504) есть только здесь — на них стоит SLI доступности; новое
|
||||
имя прокси (`entry`, `api`) — правка правил `infra/otel/prometheus/rules.yml`
|
||||
и панелей вместе с конфигом.
|
||||
- Журнал — `log stdout`, `option httplog` + `option dontlog-normal`:
|
||||
успешные запросы не пишутся, ошибки, повторы (`+N` в поле retries),
|
||||
перенаправления и смена состояния реплик — пишутся. `nbthread` равен
|
||||
|
||||
Reference in New Issue
Block a user