Skip to main content
Now that Prometheus is running, install an exporter on each target machine so Prometheus can collect host-level metrics. Node Exporter is the Prometheus exporter for hardware- and OS-level metrics on Linux systems. It exposes metrics over HTTP for Prometheus to scrape. In this guide you’ll:
  • Download the Node Exporter release for your platform
  • Extract and run it locally (or as a service)
  • Verify metrics on port 9100
  • Add the target to your Prometheus scrape_configs

Download Node Exporter

Open the Prometheus downloads page: https://prometheus.io/download/ and locate the Node Exporter section. Choose the release and OS/architecture that match your host (prefer the latest stable release), then copy the download URL. Download the tarball with wget (replace the URL with the one you copied; the example uses v1.3.1):
A screenshot of a software downloads page listing Prometheus components (node_exporter, promlens, pushgateway, statsd_exporter) with tables showing file names, OS/arch, sizes and SHA256 checksums. The page displays download links and release/version info for each exporter.

Extract and run

Extract the archive, change into the extracted directory, and start Node Exporter:
When Node Exporter starts successfully it logs that it is listening on :9100 (the default port). Example log output:
Verify the metrics endpoint locally:
Sample excerpt of metric output (truncated):
You can also open http://localhost:9100/metrics in a browser if you are on the same machine or have network access. Quick reference:

Add Node Exporter to Prometheus scrape config

Add a scrape job for Node Exporter in your prometheus.yml. Replace the placeholder with the hostname or IP of the machine running Node Exporter:
Examples:
  • Local host: targets: ['localhost:9100']
  • Remote host: targets: ['192.0.2.10:9100']
For fleets of hosts, use file-based service discovery or a configuration management tool to generate the target list.
For production deployments run Node Exporter as a dedicated system service and user so it is managed across reboots. Create a node_exporter user, copy the binary to a system path (for example /usr/local/bin/node_exporter), and use a systemd unit like the example below.
Enable and start:
That’s it — Node Exporter will now expose host metrics for Prometheus to scrape. Links and references:

Watch Video