Install node_exporter
Install node_exporter for system status and performance data
node_exporter
node_exporter exports metrics related to system status and performance.
Create System Account
Create a system account under which node_exporter can run.
sudo adduser --system node_exporter --group --no-create-home

adduser
commandInstall node_exporter
The instructions below are for version 1.5.0. Check for newer versions of node_exporter, and adapt the instructions below.
Download the latest release.
cd
wget https://github.com/prometheus/node_exporter/releases/download/v1.5.0/node_exporter-1.5.0.linux-amd64.tar.gz

wget
commandUnpack the release.
tar xzvf node_exporter-1.5.0.linux-amd64.tar.gz

tar node_exporter
commandCopy the executable file to /usr/local/bin
.
sudo cp node_exporter-1.5.0.linux-amd64/node_exporter /usr/local/bin/
Configure Startup
Create a systemd service file to configure automatic startup of the node_exporter service.
sudo nano /etc/systemd/system/node_exporter.service
Insert the following into the node_exporter systemd service file.
[Unit]
Description=Node Exporter
[Service]
Type=simple
Restart=always
RestartSec=5
User=node_exporter
ExecStart=/usr/local/bin/node_exporter
[Install]
WantedBy=multi-user.target
Save the file and exit the editor.
Optional: Clean Up Installation Files
Remove the node_exporter archive and installation directory.
cd
rm node_exporter-1.5.0.linux-amd64.tar.gz
rm -rf node_exporter-1.5.0.linux-amd64
Notes
We have not yet configured nor started node_exporter.
Last updated