This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |