Skip to content

fix(monitoring): add healthchecks for prometheus, grafana and alertmanager - #328

Open
SabaTech-dev wants to merge 1 commit into
mainfrom
chore/compose-healthchecks-monitoring
Open

SabaTech-dev wants to merge 1 commit into
mainfrom
chore/compose-healthchecks-monitoring

Conversation

@SabaTech-dev

Copy link
Copy Markdown
Owner

What

Adds Docker healthchecks to the prometheus, grafana and alertmanager services in docker-compose.unified.yml:

  • prometheus: wget -q -O /dev/null http://localhost:9090/-/ready (busybox wget in prom/prometheus:v2.45.0)
  • grafana: curl -sf http://localhost:3000/api/health (grafana/grafana:11.6.0)
  • alertmanager: wget -q -O /dev/null http://localhost:9093/-/ready (prom/alertmanager:v0.34.1)

All with interval: 30s, timeout: 5s, retries: 3, start_period: 30s.

Why

The containers running on jokerserver carried healthchecks from an earlier deploy that this compose never defined, so any recreate from the compose dropped them: on 2026-11-24, after the repos migration to /srv/repos, the three monitoring containers came back without a Docker health state (docker ps stopped showing (healthy)), although the services themselves were fine. This pins the checks in the compose so the state is reproducible.

Verification (live on jokerserver)

  • docker compose -f docker-compose.unified.yml config --quiet → exit 0
  • The three containers recreated with up -d --no-deps --force-recreate report running | healthy
  • Endpoints from the host: 127.0.0.1:9091/-/ready → 200, 127.0.0.1:3005/api/health → 200, 127.0.0.1:9093/-/ready → 200
  • Independent verifier re-ran the probes: VERIFIED (10/10)

Context: part of the /srv/repos migration alignment (handoff ~/.openclaw/workspace/reports/handoffs/2026-11-24-repos-migration-to-srv-handoff.md).

…nager

The running containers carried Docker healthchecks from an earlier deploy,
but docker-compose.unified.yml did not define them, so any recreate from the
compose dropped them (seen on 2026-11-24 during the /srv/repos migration).
@github-actions

Copy link
Copy Markdown

PR Check Results

✅ Code Formatting: Passed
✅ Linting: Passed
✅ Type Checking: Failed
✅ Tests: Failed

⚠️ Some checks failed. Please review the details above.

@github-actions

Copy link
Copy Markdown

⚠️ WARN Trivy Security Scan Results

Severity Count
🔴 CRITICAL 0
🟠 HIGH 83
Total 83

Scans performed:

  • 📁 Filesystem (vulnerabilities, secrets, misconfigurations)
  • 🐳 Backend Docker image
  • 🐳 Frontend Docker image
  • 🏗️ IaC misconfiguration detection

⚠️ HIGH vulnerabilities should be addressed. Review required.

📋 View detailed SARIF reports

Download artifacts from this workflow run for full SARIF reports.
Results are also available in the GitHub Security tab.


Trivy v0.71.0 | aquasecurity/trivy

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant