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:
2026-11-12 00:35:01 +03:00
co-authored by Claude Opus 5.5
parent 839433c23b
commit 15ea156404
33 changed files with 4764 additions and 176 deletions
+11 -1
View File
@@ -602,7 +602,10 @@ services:
# Prometheus — метрики: scrape Collector и собственных метрик конвейера;
# срок и предел объёма хранения — флаги. Без remote write, OTLP, admin API и
# lifecycle
# lifecycle. Правила записи и оповещения — файл rules.yml (design change
# slo-alerts, решения 1, 3, 4); доставки оповещений наружу нет. Время начала
# cumulative-рядов экспортёра Collector (protobuf) — ноль в момент начала
# ряда нового процесса (решение 6)
prometheus:
image: prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2
restart: unless-stopped
@@ -611,6 +614,7 @@ services:
- --storage.tsdb.path=/prometheus
- --storage.tsdb.retention.time=7d
- --storage.tsdb.retention.size=1GB
- --enable-feature=created-timestamp-zero-ingestion
environment:
GOMEMLIMIT: 300MiB
volumes:
@@ -622,6 +626,12 @@ services:
read_only: true
bind:
create_host_path: false
- type: bind
source: ./infra/otel/prometheus/rules.yml
target: /etc/prometheus/rules.yml
read_only: true
bind:
create_host_path: false
networks:
- telemetry
healthcheck: