mirror of
https://github.com/tteck/Proxmox.git
synced 2024-11-24 05:25:30 +00:00
Update prometheus-install.sh
tweak
This commit is contained in:
parent
ef55baf25a
commit
c926ed1fbc
@ -23,8 +23,8 @@ msg_info "Installing Prometheus"
|
|||||||
RELEASE=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
RELEASE=$(curl -s https://api.github.com/repos/prometheus/prometheus/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
|
||||||
mkdir -p /etc/prometheus
|
mkdir -p /etc/prometheus
|
||||||
mkdir -p /var/lib/prometheus
|
mkdir -p /var/lib/prometheus
|
||||||
$STD wget https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz
|
wget -q https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/prometheus-${RELEASE}.linux-amd64.tar.gz
|
||||||
$STD tar -xvf prometheus-${RELEASE}.linux-amd64.tar.gz
|
tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz
|
||||||
cd prometheus-${RELEASE}.linux-amd64
|
cd prometheus-${RELEASE}.linux-amd64
|
||||||
mv prometheus promtool /usr/local/bin/
|
mv prometheus promtool /usr/local/bin/
|
||||||
mv consoles/ console_libraries/ /etc/prometheus/
|
mv consoles/ console_libraries/ /etc/prometheus/
|
||||||
@ -51,7 +51,7 @@ ExecStart=/usr/local/bin/prometheus \
|
|||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target" >$service_path
|
WantedBy=multi-user.target" >$service_path
|
||||||
$STD sudo systemctl enable --now prometheus
|
systemctl enable -q --now prometheus
|
||||||
msg_ok "Created Service"
|
msg_ok "Created Service"
|
||||||
|
|
||||||
motd_ssh
|
motd_ssh
|
||||||
|
Loading…
Reference in New Issue
Block a user