Pcornel
Observability · Infrastructure Observability

Host Metrics with node_exporter

Cheat sheet · https://pcornel.dk/topic.php?topic=6230

Back to the Topic

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 topic
  • curl -s localhost:9090/-/ready — Prometheus ready
  • curl -s 'localhost:9090/api/v1/query?query=up' — scrape targets up/down
  • promtool 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

Confirmation

Confirm action

Continue?