ЛР6: OpenTelemetry, Collector, Prometheus/Loki/Tempo, Grafana, SLO и алерты, инциденты

This commit is contained in:
kalibr456
2026-11-01 21:25:38 +03:00
parent 470d9d6f1e
commit 79ef8807d5
156 changed files with 18393 additions and 35 deletions
+15
View File
@@ -0,0 +1,15 @@
@echo off
rem Restart hook for tests/resilience.py on Windows (same as scripts/restart.sh).
rem Python on Windows cannot start .sh files directly (WinError 193), a .cmd file works.
rem Restarts the stores first (PostgreSQL, Redis, SeaweedFS S3, RabbitMQ, Prometheus, Loki, Tempo), then otel-collector,
rem api, janitor, dispatcher, worker, grafana,
rem then the balancer. Volumes are kept.
rem "restart" does not wait for healthchecks; SeaweedFS needs a few seconds to bring up S3, so wait explicitly
rem ("up --wait --no-recreate" keeps the same containers and only waits until they are healthy).
cd /d "%~dp0.."
docker compose restart postgres redis s3 rabbitmq prometheus loki tempo || exit /b 1
docker compose up -d --wait --no-recreate --no-build --no-deps postgres redis s3 rabbitmq prometheus loki tempo || exit /b 1
docker compose restart otel-collector api janitor dispatcher worker grafana || exit /b 1
docker compose restart lb || exit /b 1
docker compose up -d --wait --no-recreate --no-build --no-deps otel-collector api lb dispatcher worker grafana || exit /b 1
exit /b 0