Repository navigation
fix(monitoring): add healthchecks for prometheus, grafana and alertmanager - #328
Open
SabaTech-dev wants to merge 1 commit into
Open
SabaTech-dev wants to merge 1 commit into
SabaTech-dev wants to merge 1 commit into
Conversation
…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).
PR Check Results✅ Code Formatting: Passed |
|
| Severity | Count |
|---|---|
| 🔴 CRITICAL | 0 |
| 🟠 HIGH | 83 |
| Total | 83 |
Scans performed:
- 📁 Filesystem (vulnerabilities, secrets, misconfigurations)
- 🐳 Backend Docker image
- 🐳 Frontend Docker image
- 🏗️ IaC misconfiguration detection
📋 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds Docker healthchecks to the
prometheus,grafanaandalertmanagerservices indocker-compose.unified.yml:wget -q -O /dev/null http://localhost:9090/-/ready(busybox wget inprom/prometheus:v2.45.0)curl -sf http://localhost:3000/api/health(grafana/grafana:11.6.0)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 psstopped 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 0up -d --no-deps --force-recreatereportrunning | healthy127.0.0.1:9091/-/ready→ 200,127.0.0.1:3005/api/health→ 200,127.0.0.1:9093/-/ready→ 200Context: part of the
/srv/reposmigration alignment (handoff~/.openclaw/workspace/reports/handoffs/2026-11-24-repos-migration-to-srv-handoff.md).