Skip to content

Instantly share code, notes, and snippets.

@fergalmoran
Last active August 26, 2021 18:56
Show Gist options
  • Save fergalmoran/bf159861ed0e8cd2157334c88c23401c to your computer and use it in GitHub Desktop.
Save fergalmoran/bf159861ed0e8cd2157334c88c23401c to your computer and use it in GitHub Desktop.
Install Node Exporter
#!/usr/bin/env
curl -SL https://github.com/prometheus/node_exporter/releases/download/v1.2.2/node_exporter-1.2.2.linux-armv7.tar.gz >/tmp/node_exporter.tar.gz &&
sudo tar -xvf /tmp/node_exporter.tar.gz -C /usr/local/bin/ --strip-components=1
echo '[Unit]
Description=NodeExporter
[Service]
TimeoutStartSec=0
ExecStart=/usr/local/bin/node_exporter
[Install]
WantedBy=multi-user.target' | sudo tee '/etc/systemd/system/node-exporter.service'
sudo systemctl daemon-reload &&
sudo systemctl enable node-exporter &&
sudo systemctl start node-exporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment