Prometheus exporter for hardware and OS metrics exposed by *NIX kernels
open sourceApache-2.0self-hostablefree
Node exporter (node_exporter) is the Prometheus project's agent for machine metrics: it reads CPU, memory, disk, filesystem, network, load, hardware sensor, systemd and many other statistics from the kernel and serves them on HTTP port 9100 for Prometheus to scrape. Each source is a pluggable collector that can be turned on or off, and the textfile collector exposes metrics that cron jobs or scripts write to *.prom files. It runs on Linux, macOS and the BSDs, natively or in a container with the host's root filesystem mounted, and serves TLS when given a web config file. It is Apache-2.0 and part of Prometheus, a CNCF project.
Ways to install
On your own server
Package managers
Problems it solves
- graph CPU, memory, disk and network usage for all my Linux servers in one place
- alert before a server's disk fills up
- collect host metrics from my homelab machines into Prometheus and Grafana
- see which systemd services have failed across my fleet
- track temperatures and fan speeds from hardware sensors on a bare-metal box
- export a custom number from a shell script or cron job without running a separate push service
- record when the nightly backup cron job last finished and alert if it's too old
- monitor a Raspberry Pi's load and memory with a tiny agent
- spot disk I/O saturation and pressure stall on a database server
- expose NFS, mdadm RAID and NVMe statistics from my storage server
- monitor the host from a container without measuring only the container itself
Features
- CPU, memory, load, disk I/O, filesystem and network interface metrics
- hardware sensor (hwmon), thermal and power supply metrics on Linux
- systemd, logind, mdadm, NFS, NVMe, InfiniBand, IPVS and pressure stall collectors on Linux
- collectors enabled or disabled one by one with --collector flags
- include and exclude patterns for some collectors
- textfile collector for metrics from batch jobs and scripts (*.prom files)
- collector success and duration meta-metrics
- TLS through the exporter-toolkit web config file
- container deployment with path.rootfs for the host filesystem
- packaged in EPEL for Enterprise Linux and Fedora
Limitations
Alternatives
The same job
These do what Node exporter does.
- Telegraf Open source agent for collecting metrics from infrastructure, applications, and devices
- Netdata Full-stack observability: metrics, logs, traces and more, per second
- Prometheus Pushgateway Push acceptor for ephemeral and batch jobs
- windows_exporter A Prometheus exporter for Windows machines
- cAdvisor Analyzes resource usage and performance characteristics of running containers