Last active
August 26, 2021 18:56
-
-
Save fergalmoran/bf159861ed0e8cd2157334c88c23401c to your computer and use it in GitHub Desktop.
Install Node Exporter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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