up
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Airgap Sealed CI Smoke / sealed-smoke (push) Has been cancelled
Console CI / console-ci (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
Some checks failed
Docs CI / lint-and-preview (push) Has been cancelled
Export Center CI / export-ci (push) Has been cancelled
Airgap Sealed CI Smoke / sealed-smoke (push) Has been cancelled
Console CI / console-ci (push) Has been cancelled
devportal-offline / build-offline (push) Has been cancelled
This commit is contained in:
28
ops/devops/airgap/health_observability.sh
Normal file
28
ops/devops/airgap/health_observability.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
# Health check for compose-observability.yaml (DEVOPS-AIRGAP-58-002)
|
||||
|
||||
COMPOSE_FILE="$(cd "$(dirname "$0")" && pwd)/compose-observability.yaml"
|
||||
|
||||
echo "Starting observability stack (Prometheus/Grafana/Tempo/Loki)..."
|
||||
docker compose -f "$COMPOSE_FILE" up -d
|
||||
|
||||
echo "Waiting for containers to report healthy..."
|
||||
docker compose -f "$COMPOSE_FILE" wait >/dev/null 2>&1 || true
|
||||
|
||||
docker compose -f "$COMPOSE_FILE" ps
|
||||
|
||||
echo "Probing Prometheus /-/ready"
|
||||
curl -sf http://127.0.0.1:9090/-/ready
|
||||
|
||||
echo "Probing Grafana /api/health"
|
||||
curl -sf http://127.0.0.1:3000/api/health
|
||||
|
||||
echo "Probing Loki /ready"
|
||||
curl -sf http://127.0.0.1:3100/ready
|
||||
|
||||
echo "Probing Tempo /ready"
|
||||
curl -sf http://127.0.0.1:3200/ready
|
||||
|
||||
echo "All probes succeeded."
|
||||
Reference in New Issue
Block a user