forked from mtusi2026/mtusi2026lab6
lab6: Collector, Prometheus/Loki/Tempo/Grafana, alerts, incidents, track 1 (cost of observability)
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
# Evidence lab6 — навигация
|
||||
|
||||
Все файлы получены на живом стенде (`make stand-up`); пароли/токены не сохранялись.
|
||||
|
||||
| Что | Файл(ы) |
|
||||
| --- | --- |
|
||||
| Старт бизнеса без Collector | `no-collector-start.txt` |
|
||||
| Готовность стека | `ready.json`, `ready-backend.json` |
|
||||
| Сигналы, labels, units | `signals.json`, `metric-names.txt`, `inventory.json` |
|
||||
| Корреляция HTTP / upload / retry / failed | `correlation-http.json`, `correlation-upload.json`, `correlation-retry.json`, `correlation-failed.json` |
|
||||
| Redaction | `redaction.json`, `redaction.txt` |
|
||||
| UI Grafana (owned Chromium) | `screenshots/01…07-*.webp` |
|
||||
| Инциденты | `incident-worker.json`, `incident-db.json`, `incident-telemetry-1.json`, `incident-telemetry-2.json` |
|
||||
| Сохранность истории backend | `history.json` |
|
||||
| Трек 1 | `track1/calibration.json`, `track1/matrix.json`, `track1/selected.json`, `track1/selected-validation.json`, `track1/runs/<повтор>-<режим>/`, `track1/validation/p25/` |
|
||||
| Регрессия | `regression/*.txt` |
|
||||
| Холодный старт | `cold-start/` |
|
||||
|
||||
## Команды проверки конфигов
|
||||
|
||||
```sh
|
||||
docker compose --env-file .env config --quiet
|
||||
docker compose --env-file .env run --rm --no-deps otel-collector validate --config=/etc/otelcol-contrib/config.yaml
|
||||
docker compose --env-file .env run --rm --no-deps --entrypoint promtool prometheus check config /etc/prometheus/prometheus.yml
|
||||
docker compose --env-file .env run --rm --no-deps --entrypoint promtool prometheus check rules /etc/prometheus/rules/recording.yml /etc/prometheus/rules/alerts.yml
|
||||
docker compose --env-file .env run --rm --no-deps --workdir /etc/prometheus -v ./infra/prometheus/tests:/etc/prometheus/tests:ro --entrypoint promtool prometheus test rules /etc/prometheus/tests/alerts.test.yml
|
||||
docker compose --env-file .env run --rm --no-deps loki -config.file=/etc/loki/loki.yaml -verify-config
|
||||
python3 -m unittest discover -s scripts/lab6 -p 'test_*.py'
|
||||
```
|
||||
Tempo `-config.verify` в образе 2.8.1 падает panic в разборе флагов; конфиг проверен фактическим стартом и записью/чтением трасс.
|
||||
Reference in New Issue
Block a user