Skip to content

Instantly share code, notes, and snippets.

@bvolpato
Created March 12, 2019 06:43
Show Gist options
  • Save bvolpato/3e67677ed958acc5465c04b8de4f8c7e to your computer and use it in GitHub Desktop.
Save bvolpato/3e67677ed958acc5465c04b8de4f8c7e to your computer and use it in GitHub Desktop.
Node Exporter
sudo useradd --no-create-home --shell /bin/false node_exporter
wget https://github.com/prometheus/node_exporter/releases/download/v0.17.0/node_exporter-0.17.0.linux-amd64.tar.gz
tar zxvf node_exporter-0.17.0.linux-amd64.tar.gz
cp node_exporter-0.17.0.linux-amd64/node_exporter /usr/local/bin
chown node_exporter:node_exporter /usr/local/bin/node_exporter
curl https://gist.githubusercontent.com/brunocvcunha/ccf7f5e53e0fbe4684c94cb1f4d2add3/raw/d5b6ead5671e1b2b7a1a4e6a08b0b261cc9a311a/node_exporter.service > /etc/systemd/system/node_exporter.service
systemctl daemon-reload
systemctl start node_exporter
systemctl status node_exporter
systemctl enable node_exporter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment