Skip to content

Instantly share code, notes, and snippets.

@onysko
onysko / node_exporter_install.sh
Created September 7, 2021 08:37
Node Exporter (prometheus) debian install
# put your version instead of "1.2.2"
wget https://github.com/prometheus/node_exporter/releases/download/v1.2.2/node_exporter-1.2.2.linux-amd64.tar.gz &&
tar xf node_exporter-1.2.2.linux-amd64.tar.gz &&
cd node_exporter-1.2.2.linux-amd64/ &&
cp node_exporter /usr/local/bin &&
useradd --no-create-home --home-dir / --shell /bin/false node_exporter
echo '[Unit]
Description=Prometheus Node Exporter
After=network.target