Skip to content

Instantly share code, notes, and snippets.

View nmcusa's full-sized avatar

Nicholas Craig nmcusa

View GitHub Profile
@nmcusa
nmcusa / node_exporter.sh
Created July 5, 2022 02:12 — forked from galexrt/node_exporter.sh
Simple Prometheus node_exporter install script (Updated for 1.0.1)
#!/bin/bash
version="${VERSION:-1.0.1}"
arch="${ARCH:-linux-amd64}"
bin_dir="${BIN_DIR:-/usr/local/bin}"
wget "https://github.com/prometheus/node_exporter/releases/download/v$version/node_exporter-$version.$arch.tar.gz" \
-O /tmp/node_exporter.tar.gz
mkdir -p /tmp/node_exporter