Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
FIRE! FIRE! FIRE!

Kanishka kanishkatn

🔥
FIRE! FIRE! FIRE!
  • Singapore
View GitHub Profile
View node_exporter_installer.sh
#!/bin/bash
NODE_EXPORTER_VERSION="0.18.0"
wget https://github.com/prometheus/node_exporter/releases/download/v${NODE_EXPORTER_VERSION}/node_exporter-${NODE_EXPORTER_VERSION}.linux-amd64.tar.gz
tar -xzvf node_exporter-${NODE_EXPORTER_VERSION}.linux-amd64.tar.gz
cd node_exporter-${NODE_EXPORTER_VERSION}.linux-amd64
sudo cp node_exporter /usr/local/bin
# create user
sudo useradd --no-create-home --shell /bin/false node_exporter