monitoring: node-exporter in the host netns #412
No reviewers
Labels
No labels
audit-work
bug
docs
general-admin
major-upgrade
needs-vps-sync
new-service
on-hold
outside-work
post-podman
renovate
upstream
vps
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mysticalsoap/docker!412
Loading…
Reference in a new issue
No description provided.
Delete branch "monitoring/node-exporter-host-netns"
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?
Problem
node-exporter sat on a bridge, so netdev, sockstat, netstat and arp described its own namespace. enp5s0 and tunnel interfaces never appeared in
node_network_*, nothing could say whether the uplink was saturated at a given time, and #156 has no way to verify a shaper.Fix
network_mode: host, as upstream's container deployment and kube-prometheus's DaemonSet do. Listener bound to themonitoring_internalgateway (172.19.1.1:9100) so the only new listener is one Prometheus can reach; the scrape lands on the hostINPUTchain, so one ufw rule keyed on the pinned subnet, documented next to the existing port 53 case. veth,br-*anddocker0excluded from netdev and netclass: ~150 of them today, each a full series set, already covered per container by cadvisor.The WAN health probe from the issue is deferred: blackbox-exporter is captured by aqomui's /1 routes and needs its own bypass entry first.
Verification
Live on this branch via
just up monitoringand a Prometheus reload:node_network_receive_bytes_totalhasenp5s0,tun_aqomui,wlan0,lo; zerovethseriesss -tlnshows 9100 on172.19.1.1only172.19.1.1:9100up after the ufw rule;rate(node_network_transmit_bytes_total{device="enp5s0"}[1m])returns live valuesdocker_backup_last_success_timestamp_seconds) still arrive$nodevariable picks up the new instancebackup-configsCloses #176
🤖 Generated with Claude Code