From 501ebfc6c9bc836d81384504fbe35e59bfb9d7b3 Mon Sep 17 00:00:00 2001 From: YanZhicong Date: Wed, 16 Jul 2025 14:29:05 +0800 Subject: [PATCH 1/4] Modify non-existent console path --- prometheus.service | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prometheus.service b/prometheus.service index 87b1c03..d62ecdb 100644 --- a/prometheus.service +++ b/prometheus.service @@ -9,8 +9,8 @@ After=network.target EnvironmentFile=-/etc/default/prometheus User=prometheus ExecStart=/usr/bin/prometheus \ - --web.console.libraries=/usr/share/prometheus/console_libraries \ - --web.console.templates=/usr/share/prometheus/consoles \ + --web.console.libraries=/etc/prometheus/console_libraries \ + --web.console.templates=/etc/prometheus/consoles \ $PROMETHEUS_OPTS ExecReload=/bin/kill -HUP $MAINPID Restart=always -- Gitee From 7e2bdd3b6a1c8523aaf08388139986cc780ab93a Mon Sep 17 00:00:00 2001 From: YanZhicong Date: Wed, 16 Jul 2025 15:49:54 +0800 Subject: [PATCH 2/4] Modify the console path that does not exist in the prometheus.service --- prometheus2.spec | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/prometheus2.spec b/prometheus2.spec index 5a9d1a9..e35afda 100644 --- a/prometheus2.spec +++ b/prometheus2.spec @@ -98,6 +98,11 @@ exit 0 %dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus %changelog +* Wed Jul 16 2025 YanZhicong - 2.53.3-2 +- Modify the console path that does not exist in the prometheus.service + * Change /usr/share/prometheus/console_libraries to /etc/prometheus/console_libraries + * Change /usr/share/prometheus/consoles to /etc/prometheus/consoles + * Wed Jul 02 2025 ZijianLi - 2.53.3-2 - Fix cgo enable on RISCV arch * set cgo enable on RISCV architecture -- Gitee From 2df2ffdad72d42596cd0e1125d74516bd4120aac Mon Sep 17 00:00:00 2001 From: YanZhicong Date: Wed, 16 Jul 2025 16:33:43 +0800 Subject: [PATCH 3/4] Modify the console path that does not exist in the prometheus.service --- prometheus2.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus2.spec b/prometheus2.spec index e35afda..d5b7b48 100644 --- a/prometheus2.spec +++ b/prometheus2.spec @@ -2,7 +2,7 @@ Name: prometheus2 Version: 2.53.3 -Release: 2 +Release: 3 Summary: The Prometheus 2.x monitoring system and time series database. License: Apache-2.0 URL: https://prometheus.io -- Gitee From 98417ceb1f9e0bd69fbe8c49cac709f183f18381 Mon Sep 17 00:00:00 2001 From: YanZhicong Date: Wed, 16 Jul 2025 17:20:25 +0800 Subject: [PATCH 4/4] Modify the console path that does not exist in the prometheus.service --- prometheus2.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus2.spec b/prometheus2.spec index d5b7b48..b85f34b 100644 --- a/prometheus2.spec +++ b/prometheus2.spec @@ -98,7 +98,7 @@ exit 0 %dir %attr(755, prometheus, prometheus)%{_sharedstatedir}/prometheus %changelog -* Wed Jul 16 2025 YanZhicong - 2.53.3-2 +* Wed Jul 16 2025 YanZhicong - 2.53.3-3 - Modify the console path that does not exist in the prometheus.service * Change /usr/share/prometheus/console_libraries to /etc/prometheus/console_libraries * Change /usr/share/prometheus/consoles to /etc/prometheus/consoles -- Gitee