feat(monitoring): auto-provision Prometheus datasource and dashboards in Grafana
All checks were successful
CI / Lint, Test & Build (push) Successful in 12m6s
CI / Deploy production (on server) (push) Successful in 1m58s

This commit is contained in:
Antigravity
2026-05-21 19:46:04 +00:00
parent a801d18b12
commit 7cf921a802
8 changed files with 12101 additions and 0 deletions

View File

@@ -80,6 +80,10 @@ for i in $(seq 1 24); do
ACTUAL=$(echo "$BODY" | jq -r '.commit // empty' 2>/dev/null || true)
if [ "$ACTUAL" = "$GIT_COMMIT" ]; then
echo "OK build-info commit=$ACTUAL"
if docker ps --format '{{.Names}}' | grep -q "^memento-grafana$"; then
echo "=== Recreating Grafana to load new provisioning and dashboards ==="
docker compose -f monitoring/docker-compose.monitoring.yml up -d --force-recreate grafana
fi
docker compose ps
exit 0
fi