Skip to content

How to install node exporter in linux

Published: at 12:00 AMSuggest Changes
wget https://github.com/prometheus/node_exporter/releases/download/v1.8.2/node_exporter-1.8.2.linux-amd64.tar.gz
tar -xvf node_exporter-1.8.2.linux-amd64.tar.gz
sudo cp node_exporter-1.8.2.linux-amd64/node_exporter /usr/local/bin
sudo useradd node_exporter --no-create-home --shell /bin/false
sudo chown node_exporter:node_exporter /usr/local/bin/node_exporter
sudo vi /etc/system/systemd/node_exporter.service
[Unit]  
Description=Node Exporter  
Wants=network-online.target  
After=network-online.target  
  
[Service]  
User=node_exporter  
Group=node_exporter  
Type=simple  
ExecStart=/usr/local/bin/node_exporter  
  
[Install]  
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl start node_exporter  
sudo systemctl enable node_exporter
sudo systemctl status node_exporter

Previous Post
Git notes
Next Post
Promtail notes