Observability · Infrastructure Observability
Host Metrics with node_exporter
Cheat sheet · https://pcornel.dk/topic.php?topic=6230
Answer
node_exporter exposes Linux host metrics — CPU, memory, disks, filesystems, network, load — on port 9100 for Prometheus.
Remember
Use rate() on CPU and network counters. Exclude pseudo filesystems. Enable the textfile collector for custom host metrics.
First checks
curl -s localhost:9100/metrics | grep node_load1— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
Verify in this order
kernel /proc,/sys → node_exporter → scrape → dashboards/alerts
Where it usually breaks
Monitoring MemFree instead of MemAvailable causes false alarms.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6230