Skip to content

Instantly share code, notes, and snippets.

@Tumar
Tumar / gist:18ef41165eda6f9990412b49a84dccae
Created May 12, 2020 09:32
Install prometheus node exporter
# Download and unpack
curl -LO https://github.com/prometheus/node_exporter/releases/download/v0.18.1/node_exporter-0.18.1.linux-amd64.tar.gz
tar -xvf node_exporter-0.18.1.linux-amd64.tar.gz
sudo mv node_exporter-0.18.1.linux-amd64/node_exporter /usr/local/bin
# Add user
sudo useradd -rs /bin/false node_exporter
# Configure service
sudo vi /etc/systemd/system/node_exporter.service
@Tumar
Tumar / gist:cd1ef5ecd88086d49d04d9a4205f4763
Last active September 10, 2024 13:19
Install alertmanager
# Create user
useradd --no-create-home --shell /bin/false alertmanager
# Download and unpack
wget https://github.com/prometheus/alertmanager/releases/download/v0.20.0/alertmanager-0.20.0.linux-amd64.tar.gz
tar -xvf alertmanager-0.20.0.linux-amd64.tar.gz
mv alertmanager-0.20.0.linux-amd64/alertmanager /usr/local/bin/
mv alertmanager-0.20.0.linux-amd64/amtool /usr/local/bin/
chown alertmanager:alertmanager /usr/local/bin/alertmanager