Prometheus Node Exporter on RaspberryPi 4
Install the node exporter software
Get the latest version from the github prometheus project
https://github.com/prometheus/node_exporter/releases
Select the version you need arm6 for raspberrypi 3 or arm7 for Raspberrypi 4
Next you will download the qzip file and extract it, copy to the user path then create a service file to start and run the service
tar -xvf node_exporter-1.8.2.linux-armv7.tar.gz
cd node_exporter-1.8.2.linux-armv7/
sudo cp node_exporter /usr/local/bin
sudo vi /etc/systemd/system/node_exporter.service
You will next past the following into the service file.
[Unit]
Description=Node Exporter
[Service]
# Provide a text file location for https://github.com/fahlke/raspberrypi_exporter data with the
# --collector.textfile.directory parameter.
ExecStart=/usr/local/bin/node_exporter
[Install]
WantedBy=multi-user.target
Next need to reload daemon and, enable service, start service and check status
sudo systemctl daemon-reload
sudo systemctl enable node_exporter.service
sudo systemctl start node_exporter.service
sudo systemctl status node_exporter.service
No Comments