Installation & Configuration of Node Exporter

Node Exporter is a Prometheus exporter for server level and OS level metrics with configurable metric collectors. It helps us in measuring various server resources such as RAM, disk space, and CPU utilization.

Go to the site copy the package of node_exporter


Extract the downloaded package.

tar -xvzf node_exporter-1.0.0.linux-amd64.tar.gz

Create a user for the node exporter.

useradd -rs /bin/false nodeusr

Move binary to “/usr/local/bin” from the downloaded extracted package.

mv node_exporter-1.0.0.linux-amd64/node_exporter /usr/local/bin/

Create a service file for the node exporter.

vim /etc/systemd/system/node_exporter.service

Add the following content to the file.

Description=Node Exporter




Save and exit the file.

Reload the system daemon.

systemctl daemon-reload

Start node exporter service.

systemctl start node_exporter

Enable node exporter on system boot.

systemctl enable node_exporter

use this URL to see the metrics


Then you will see this window:-

Add configured node exporter Target On Prometheus Server.

Login to Prometheus server and modify the prometheus.yml file

Edit the file:

vim /etc/prometheus/prometheus.yml

Add the following configurations under the scrape config.

– job_name: ‘node_exporter_centos’
    scrape_interval: 5s
      – targets: [‘node_exporter-ip-addr:9100’]

The file should look like as follows.

Restart Prometheus service.

systemctl restart prometheus

Login to Prometheus server web interface, and check targets.


You can click the graph and query any server metrics and click execute to show output. It will show the console output.

Query Browser:

Console output:

Installation & Configuration of Node Exporter

Click on graph to view:

Installation & Configuration of Node Exporter


Leave a Reply

Your email address will not be published. Required fields are marked *