fix(manage): health shows Prometheus as stopped while it runs; monitor Prometheus and Alertmanager #249
Loading…
Reference in a new issue
No description provided.
Delete branch "jfraeys/fix/health-compose-names"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Reported: 'prometheus in health check says stop but I can access it'.
Cause: Prometheus and Alertmanager are not in the health check's monitored table, so they fall into the generic 'known services' loop, which compares container names EXACTLY. Compose names containers -- (prometheus-prometheus-1), so 'prometheus' was never 'running'; /opt/prometheus exists, so the loop concluded 'deployed but stopped' and printed 'STOP (stopped, data preserved)'. Grafana and Loki would have shown the same once enabled.
Fix
Checked: scripts/tests/test-health-service-state.sh (8 cases with a stubbed docker; three fail if the normalization is removed; in lint.yml); shellcheck -S error via the official image: clean.
Not checked: the full 'manage health check' output on services (needs this installed there). After merge and promotion: ./infra deploy --tags manage_cli --limit services, then ./manage health check --host services and confirm prometheus and alertmanager show a check mark.
🤖 Generated with Claude Code
https://claude.ai/code/session_01Ge5tovcwdEUBtPwUktsZZZ