feat: implement lab 6 observability and telemetry cost research
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# Доказывает (уровень 4): правила Prometheus (SLO recording rules и три alert)
|
||||
# проходят promtool check и unit-тесты promtool (rules.test.yml); образ
|
||||
# Prometheus — тот же digest, что в compose.yaml.
|
||||
# Дата: 2026-11-15, 22:23 UTC.
|
||||
# Окружение: macOS 26.7.1, Docker 29.9.2, Compose 5.6.1, Python хоста 3.11.9.
|
||||
# Стенд: не нужен (promtool в разовом контейнере, правила — bind-mount read-only).
|
||||
# Код: src_sha256 81c47ffceeb40acc6f333a9265a15480b3e13e2cb53b2e2229e5fa7391bd0b7a
|
||||
# Повторить: make alerts-test
|
||||
|
||||
$ make alerts-test
|
||||
docker run --rm -v "<репозиторий>/infra/otel/prometheus:/rules:ro" -w /rules --entrypoint promtool prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 check rules rules.yml
|
||||
Checking rules.yml
|
||||
SUCCESS: 7 rules found
|
||||
|
||||
docker run --rm -v "<репозиторий>/infra/otel/prometheus:/rules:ro" -w /rules --entrypoint promtool prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 test rules rules.test.yml
|
||||
SUCCESS
|
||||
|
||||
# Итог: PASS — 7 правил, тесты правил SUCCESS.
|
||||
Reference in New Issue
Block a user