#!/usr/bin/env bash set -euo pipefail cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." docker compose --profile metrics-analytics up -d metrics-bridge prometheus for ((i=0; i<60; i++)); do if curl -fsS http://127.0.0.1:9090/-/ready >/dev/null; then break; fi sleep 2 done curl -fsS http://127.0.0.1:9090/-/ready python3 scripts/register-prometheus.py