From abac99e995c817d327fea9898a9f369114637b24 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Sun, 17 Nov 2024 17:40:46 +0100 Subject: [PATCH] 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 --- ct/prometheus.sh | 1 - install/prometheus-install.sh | 3 --- 2 files changed, 4 deletions(-) diff --git a/ct/prometheus.sh b/ct/prometheus.sh index 18b3dae1..af62545b 100644 --- a/ct/prometheus.sh +++ b/ct/prometheus.sh @@ -66,7 +66,6 @@ if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_v tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz cd prometheus-${RELEASE}.linux-amd64 cp -rf prometheus promtool /usr/local/bin/ - cp -rf consoles/ console_libraries/ /etc/prometheus/ cd ~ rm -rf prometheus-${RELEASE}.linux-amd64 prometheus-${RELEASE}.linux-amd64.tar.gz echo "${RELEASE}" >/opt/${APP}_version.txt diff --git a/install/prometheus-install.sh b/install/prometheus-install.sh index 16953258..032a9d8c 100644 --- a/install/prometheus-install.sh +++ b/install/prometheus-install.sh @@ -27,7 +27,6 @@ wget -q https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/p tar -xf prometheus-${RELEASE}.linux-amd64.tar.gz cd prometheus-${RELEASE}.linux-amd64 mv prometheus promtool /usr/local/bin/ -mv consoles/ console_libraries/ /etc/prometheus/ mv prometheus.yml /etc/prometheus/prometheus.yml echo "${RELEASE}" >/opt/${APPLICATION}_version.txt msg_ok "Installed Prometheus" @@ -46,8 +45,6 @@ Type=simple ExecStart=/usr/local/bin/prometheus \ --config.file=/etc/prometheus/prometheus.yml \ --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 [Install]