Skip to content

Instantly share code, notes, and snippets.

@EmmaKnijn
Created January 15, 2024 09:55
Show Gist options
  • Save EmmaKnijn/24cf649cec8ea70faf3792dfbb0e9246 to your computer and use it in GitHub Desktop.
Save EmmaKnijn/24cf649cec8ea70faf3792dfbb0e9246 to your computer and use it in GitHub Desktop.
quick install script for node_exporter
wget https://github.com/prometheus/node_exporter/releases/download/v1.1.1/node_exporter-1.1.1.linux-amd64.tar.gz
tar xvfz node_exporter-*.*-amd64.tar.gz
cd node_exporter-*.*-amd64
sudo cp node_exporter /usr/local/bin
wget https://gist.githubusercontent.com/EmmaKnijn/d22f46ae7ffbd917f0bb28b6be94c74c/raw/765f38d9c6efcf3fda0b73bdeb1fa01c791836f0/exporter.service
sudo cp exporter.service /etc/systemd/system/
sudo systemctl enable --now exporter
watch sudo systemctl status exporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment