From ec0420439d7befbdebf73c2e5f14eec204341326 Mon Sep 17 00:00:00 2001 From: makotocc0107 <1424018999@qq.com> Date: Wed, 9 Oct 2024 16:01:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=AD=A3]=E4=BF=AE=E6=AD=A3=E4=BA=86?= =?UTF-8?q?=E5=90=84=E4=B8=AA=E6=9C=8D=E5=8A=A1=E4=B8=ADconfd=E4=B8=AD?= =?UTF-8?q?=E7=9A=84reload=E9=87=8D=E5=90=AF=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/prometheus/confd/conf.d/prometheus.toml | 3 ++- docker/prometheus/confd/conf.d/supervisord.toml | 3 ++- opcua-exporter/confd/conf.d/opcua.toml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docker/prometheus/confd/conf.d/prometheus.toml b/docker/prometheus/confd/conf.d/prometheus.toml index 39c81bf..52e282d 100644 --- a/docker/prometheus/confd/conf.d/prometheus.toml +++ b/docker/prometheus/confd/conf.d/prometheus.toml @@ -4,4 +4,5 @@ dest = "/etc/prometheus/prometheus.yml" keys = [ "/time/", "/remote_write/", -] \ No newline at end of file +] +reload_cmd = "pkill -9 -f '/usr/local/bin/prometheus --config.file=/etc/prometheus/prometheus.yml'" \ No newline at end of file diff --git a/docker/prometheus/confd/conf.d/supervisord.toml b/docker/prometheus/confd/conf.d/supervisord.toml index b0d0e0d..4c82c6a 100644 --- a/docker/prometheus/confd/conf.d/supervisord.toml +++ b/docker/prometheus/confd/conf.d/supervisord.toml @@ -3,4 +3,5 @@ src = "supervisord.tmpl" dest = "/etc/supervisord/supervisord.conf" keys = [ "/time/" -] \ No newline at end of file +] +reload_cmd = "pkill -9 -f '/usr/local/bin/prometheus --config.file=/etc/prometheus/prometheus.yml'" \ No newline at end of file diff --git a/opcua-exporter/confd/conf.d/opcua.toml b/opcua-exporter/confd/conf.d/opcua.toml index e3be7e3..c7e89b6 100644 --- a/opcua-exporter/confd/conf.d/opcua.toml +++ b/opcua-exporter/confd/conf.d/opcua.toml @@ -6,5 +6,5 @@ keys = [ "/exporter/", "/metrics/", ] -reload_cmd = "pkill -f opcua-exporter" +reload_cmd = "pkill -f opcua_exporter"