How To Install and Configure Node Exporter Prometheus

How To Install and Configure Node Exporter Prometheus

We can install and configure node exporter service for Prometheus. We can monitor the remote node machine using Prometheus. you can monitor metrics of a remote machine like CPU, Memory, Network, etc. so

Once you configure, you have to configure in the Prometheus server and make sure you have connectivity between them and ports are allowed in the firewall rule. so

Check Out: Docker Connection Error Desc Transport X509 Certificate


we have created a user with no bash login. so

useradd -m -s /bin/false nodeexpo

you have to extract the package using the below command.

tar -xvf node_exporter-0.18.1.linux-amd64.tar.gz

we can check the content of node_exporter using tree command.

prometheus node exporter

Next, you have to copy the node_exporter binaries to /usr/local/bin/

cp -rfvp node_exporter /usr/local/bin/

Check Out: How To Configure Rsyslog Centralized Log Server On Linux

Set the permission of node_exporter file to the user and group nodeexpo

chown nodeexpo:nodeexpo /usr/local/bin/node_exporter

we will create a service for node_exporter.


Description=Prometheus Node Exporter

## change user here







Reload the daemon and start the services.

systemctl daemon-reload

systemctl start node_exporter

systemctl status node_exporter

install node exporter

Check Out: How To Secure MySQL Database Server On CentOS 7

Now you have to check port 9100 should listen by default.

netstat -tnlp | grep 9100

node exporter service

firewall-cmd –permanent –add-port=9100/tcp

firewall-cmd –reload

we have to add this node details in the Prometheus server file and you can also use the IP address of remote machine instead of the localhost.

vim /etc/prometheus/prometheus.yml

node exporter install

Restart the service at the Prometheus server.

systemctl restart prometheus

Check Out: How To Configure Jenkins Master And Slave Server On CentOS 7

Go to the Prometheus server and click on status then targets.

As you can we have successfully configured the remote Linux server to monitoring.

We can also configure whether we’re receiving metrics from a remote machine on the Prometheus server.

curl http://node_ip:9100/metrics

if you want to test it’s working procedure. Simply go to the URL of the Prometheus server.

Check Out: How To Display Timestamp In History Command On Linux

Click on the insert metric at the cursor and select your desired metrics.

I have selected node_network_speed_bytes and then click on execute to see the data.

You’re done. prometheus node exporter install service

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

Leave a comment