feat: add Node Exporter and cAdvisor monitoring agents#7
Merged
Conversation
Add the first half of v0.7.0 (Observability): host + container metrics collection, deployed identically on every host role. - Add docker/monitoring-agent/docker-compose.yml: Node Exporter (host metrics) and cAdvisor (per-container metrics) - Both bind to 127.0.0.1 only by default - neither has any authentication, so publishing to all interfaces would leak metrics to anyone who can reach the port - Cross-host Prometheus scraping (needed once app/agent hosts have real IPs) is a documented two-step manual opt-in - rebind the port, then add a UFW rule scoped to Prometheus's specific IP - not scripted blind - No compose-level healthcheck for cAdvisor: its base image's shell/ wget availability isn't reliably confirmed across versions, so this defers to whatever HEALTHCHECK (if any) the image itself defines rather than risk a command that silently never succeeds - cadvisor image reference corrected to ghcr.io/google/cadvisor (the current registry as of v0.53.0+, not the older gcr.io/cadvisor path) - Update scripts/harden-host.sh's role_ports() with a comment explaining why these ports are intentionally not in the default UFW allowlist
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.
Summary
Roadmap Phase
v0.7.0 - Observability (PR A: instrument every host. PR B will add Prometheus/Alertmanager/Grafana/Uptime Kuma and the management-proxy nginx refactor. One v0.7.0 tag after both merge.)
Environment Impact
Rollback Plan
Revert the merge commit; no live host runs this stack yet, so rollback has no runtime impact. Nothing in this PR touches an existing service - it's purely additive.
Checklist
Test plan