fix(monitoring): upgrade legacy templating queries for Grafana 11 and force Grafana recreation on deploy to load the Memento dashboard
Some checks failed
CI / Deploy production (on server) (push) Has been cancelled
CI / Lint, Unit Tests & Build (push) Has been cancelled

This commit is contained in:
Antigravity
2026-05-30 11:49:08 +00:00
parent 7e88eb64f8
commit 8d8e8a20f4
4 changed files with 53 additions and 14 deletions

View File

@@ -158,6 +158,10 @@ for i in $(seq 1 "$HEALTH_CHECK_MAX_ITERATIONS"); do
docker compose -f monitoring/docker-compose.monitoring.yml up -d --remove-orphans 2>&1 || echo "WARN: Failed to bring up monitoring stack"
fi
# Force recreation of Grafana to reload physical JSON dashboards mounted from the host
echo "=== Recreating Grafana to load updated dashboards ==="
docker compose -f monitoring/docker-compose.monitoring.yml up -d --force-recreate grafana 2>&1 || true
if docker ps --format '{{.Names}}' | grep -q "^memento-prometheus$"; then
echo "=== Reloading Prometheus configuration ==="
docker compose -f monitoring/docker-compose.monitoring.yml exec -T prometheus kill -SIGHUP 1 2>/dev/null || true