Skip to content


 Zabbix
 Grafana
 Prometheus
 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
   
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$6.99 $9.99 Paperback 
$22.99 $29.99




Design Patterns in TypeScript
Kindle Edition
$6.99 $9.99 Paperback
$11.99 $19.99




Design Patterns in Python
Kindle Edition
$6.99 $9.99 Paperback
$11.99 $19.99




Prometheus Node Exporter

Video Lecture

Prometheus Node Exporter Introduction and Install as a Service Prometheus Node Exporter Introduction and Install as a Service Prometheus Node Exporter Introduction and Install as a Service

Check Available Version

sudo apt-cache policy prometheus-node-exporter

It should show version 0.18 or above. If not, then you can download the version manually using the commands below, and then you will need to manually set it up as a service.

If you have versions 0.18 or above then you can install using

sudo apt install prometheus-node-exporter

Check its status is active running

sudo service prometheus-node-exporter status

You can check it responds

curl http://127.0.0.1:9100/metrics

You should also try a curl request from the perspective of your Zabbix server. Furthermore, you may need to modify your firewall rules to allow your Zabbix server to query port 9100 on the host where your Prometheus Node Exporter is running.

Note

The Prometheus Node Exporter service is responding to unauthenticated HTTP requests on port 9100. These responses are not encrypted so if the data is travelling across a public network, then you will need to implement some kind of SSL/TLS layer. A Nginx reverse proxy is useful for this, or you can use a dedicated VPN.

Manually Download Prometheus Node Exporter Binary and Configure as a Service

Do this step if your apt cache has a version of prometheus-node-exporter less than 0.18.

wget https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
tar xzf node_exporter-0.18.1.linux-amd64.tar.gz
cp node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin/

Now we will configure Prometheus Node Exporter as a Service so that we can keep it running in the background.

Create a file called node-exporter.service

sudo nano /etc/systemd/system/node-exporter.service

Add the script and save

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
[Unit]
Description=Prometheus Node Exporter Service
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/node_exporter

[Install]
WantedBy=multi-user.target

Now start and check the service is running.

systemctl daemon-reload
sudo service node-exporter start
sudo service node-exporter status

Prometheus Course

If you want to try a more detailed course on Prometheus, then you can visit my Prometheus tutorials.