ЛР6: OTel SDK, Collector, Prometheus/Loki/Tempo, Grafana, alerts, dashboard, тесты инцидентов
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
docker compose --env-file .env stop
|
||||
sleep 2
|
||||
docker compose --env-file .env up -d
|
||||
|
||||
for i in $(seq 1 120); do
|
||||
if curl -fs -o /dev/null http://127.0.0.1:8080/health/ready 2>/dev/null; then
|
||||
echo "stack ready after ${i}s"
|
||||
exit 0
|
||||
fi
|
||||
sleep 1
|
||||
done
|
||||
echo "stack not ready in 120s" >&2
|
||||
exit 1
|
||||
Reference in New Issue
Block a user