Created
May 21, 2022 20:01
-
-
Save adiosamig/d366b6f44b41ba85ecf8a95744d0b3fa to your computer and use it in GitHub Desktop.
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
!# bin/bash | |
sudo useradd --no-create-home --shell /bin/false prome | |
sudo useradd --no-create-home --shell /bin/false node_exporter | |
sudo mkdir /etc/prometheus | |
sudo mkdir /var/lib/prometheus | |
wget https://github.com/prometheus/prometheus/releases/download/v2.0.0/prometheus-2.0.0.linux-amd64.tar.gz | |
tar xvf prometheus-2.0.0.linux-amd64.tar.gz | |
cp prometheus-2.0.0.linux-amd64/prometheus /usr/local/bin/ | |
cp prometheus-2.0.0.linux-amd64/promtool /usr/local/bin/ | |
chown prome:prome /usr/local/bin/prometheus | |
chown prome:prome /usr/local/bin/promtool | |
cp -r prometheus-2.0.0.linux-amd64/consoles /etc/prometheus | |
cp -r prometheus-2.0.0.linux-amd64/console_libraries /etc/prometheus | |
chown -R prome:prome /etc/prometheus/consoles | |
chown -R prome:prome /etc/prometheus/console_libraries |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment