From 33e7fcf048e3cd7a144f43267af95d4a51319e6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?n=CE=B9c=D0=BDola=D1=95=20w=CE=B9lde?= Date: Sun, 8 Dec 2024 19:09:51 -0800 Subject: [PATCH] Tweak: Patch Prometheus for v.3.0.0 (#94) @nicholaswilde MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: remove cp -rf consoles/ console_libraries/ /etc/prometheus/ Signed-off-by: nιcнolaѕ wιlde * fix: remove mv console Signed-off-by: nιcнolaѕ wιlde * fix: remove console from ExecStart Signed-off-by: nιcнolaѕ wιlde --------- Signed-off-by: nιcнolaѕ wιlde --- 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 88ade8044..8c4e96711 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 022f0450c..4ab8f274f 100644 --- a/install/prometheus-install.sh +++ b/install/prometheus-install.sh @@ -29,7 +29,6 @@ wget -q https://github.com/prometheus/prometheus/releases/download/v${RELEASE}/p tar -xf prometheus-${RELEASE}.linux-arm64.tar.gz cd prometheus-${RELEASE}.linux-arm64 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" @@ -48,8 +47,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]