From 68325bc75934c364a544ad16742e8358161e2f1d Mon Sep 17 00:00:00 2001 From: makotocc0107 <1424018999@qq.com> Date: Tue, 10 Sep 2024 09:40:09 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=A2=9E=E6=B7=BB]=E5=A2=9E=E6=B7=BB=E4=BA=86?= =?UTF-8?q?time=E7=9A=84=E6=A8=A1=E6=9D=BF=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- confd/conf.d/opcua.toml | 1 + confd/templates/opcua.tmpl | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/confd/conf.d/opcua.toml b/confd/conf.d/opcua.toml index 964b88d..e9faa60 100644 --- a/confd/conf.d/opcua.toml +++ b/confd/conf.d/opcua.toml @@ -5,6 +5,7 @@ keys = [ "/datasource/", "/exporter/", "/metrics/", + "/time/", ] #reload_cmd = "pkill -f opcua-exporter && cd /home/lamonki/opcua-expoter/build && ./manage_opcua_exporter.sh | tee /dev/tty" diff --git a/confd/templates/opcua.tmpl b/confd/templates/opcua.tmpl index 8f9072c..f7772f3 100644 --- a/confd/templates/opcua.tmpl +++ b/confd/templates/opcua.tmpl @@ -31,6 +31,6 @@ metrics: time: global_time: {{ getv "/time/global_time" }} - node_exporter_time: {{ getv "/time/node_exporter_time" }} opcua_time: {{ getv "/time/opcua_time" }} + node_exporter_time: {{ getv "/time/node_exporter_time" }} prometheus_time: {{ getv "/time/prometheus_time" }}