mirror of
https://github.com/community-scripts/ProxmoxVE
synced 2025-01-27 11:06:18 +00:00
Tweak: Patch Prometheus for v.3.0.0 (#300)
* Prometheus Tweak 3.0.0 https://github.com/community-scripts/ProxmoxVE/issues/289 https://github.com/prometheus/prometheus/releases/tag/v3.0.0 * Update prometheus-install.sh
This commit is contained in:
parent
4b823d7ff2
commit
abac99e995
@ -66,7 +66,6 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v
|
|||||||
tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz
|
tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz
|
||||||
cd prometheus-${RELEASE}.linux-amd64
|
cd prometheus-${RELEASE}.linux-amd64
|
||||||
cp -rf prometheus promtool /usr/local/bin/
|
cp -rf prometheus promtool /usr/local/bin/
|
||||||
cp -rf consoles/ console_libraries/ /etc/prometheus/
|
|
||||||
cd ~
|
cd ~
|
||||||
rm -rf prometheus-${RELEASE}.linux-amd64 prometheus-${RELEASE}.linux-amd64.tar.gz
|
rm -rf prometheus-${RELEASE}.linux-amd64 prometheus-${RELEASE}.linux-amd64.tar.gz
|
||||||
echo "${RELEASE}" >/opt/${APP}_version.txt
|
echo "${RELEASE}" >/opt/${APP}_version.txt
|
||||||
|
@ -27,7 +27,6 @@ wget -q https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/p
|
|||||||
tar -xf 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 prometheus.yml /etc/prometheus/prometheus.yml
|
mv prometheus.yml /etc/prometheus/prometheus.yml
|
||||||
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
echo "${RELEASE}" >/opt/${APPLICATION}_version.txt
|
||||||
msg_ok "Installed Prometheus"
|
msg_ok "Installed Prometheus"
|
||||||
@ -46,8 +45,6 @@ Type=simple
|
|||||||
ExecStart=/usr/local/bin/prometheus \
|
ExecStart=/usr/local/bin/prometheus \
|
||||||
--config.file=/etc/prometheus/prometheus.yml \
|
--config.file=/etc/prometheus/prometheus.yml \
|
||||||
--storage.tsdb.path=/var/lib/prometheus/ \
|
--storage.tsdb.path=/var/lib/prometheus/ \
|
||||||
--web.console.templates=/etc/prometheus/consoles \
|
|
||||||
--web.console.libraries=/etc/prometheus/console_libraries \
|
|
||||||
--web.listen-address=0.0.0.0:9090
|
--web.listen-address=0.0.0.0:9090
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
Loading…
Reference in New Issue
Block a user