[删除]多余的confd删除
This commit is contained in:
@@ -1,11 +0,0 @@
|
|||||||
[template]
|
|
||||||
src = "opcua.tmpl"
|
|
||||||
dest = "/data/opcua/opcua.yaml"
|
|
||||||
keys = [
|
|
||||||
"/datasource/",
|
|
||||||
"/exporter/",
|
|
||||||
"/metrics/",
|
|
||||||
"/time/",
|
|
||||||
]
|
|
||||||
#reload_cmd = "pkill -f opcua-exporter && cd /home/lamonki/opcua-expoter/build && ./manage_opcua_exporter.sh | tee /dev/tty"
|
|
||||||
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
backend = "etcd"
|
|
||||||
nodes = [
|
|
||||||
"http://etcd:2379",
|
|
||||||
]
|
|
||||||
watch = true
|
|
||||||
|
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
datasource:
|
|
||||||
data_source_type: {{ getv "/datasource/data_source_type" }}
|
|
||||||
name: {{ getv "/datasource/name" }}
|
|
||||||
description: {{ getv "/datasource/description" }}
|
|
||||||
opcua_service_address: {{ getv "/datasource/opcua_service_address" }}
|
|
||||||
security_policy_address: {{ getv "/datasource/security_policy_address" }}
|
|
||||||
security_mode: {{ getv "/datasource/security_mode" }}
|
|
||||||
key_authentication_file: {{ getv "/datasource/key_authentication_file" }}
|
|
||||||
certificate_authentication_file: {{ getv "/datasource/certificate_authentication_file" }}
|
|
||||||
trusted_list: {{ getv "/datasource/trusted_list" }}
|
|
||||||
username: {{ getv "/datasource/username" }}
|
|
||||||
password: {{ getv "/datasource/password" }}
|
|
||||||
certificate_identity_file: {{ getv "/datasource/certificate_identity_file" }}
|
|
||||||
key_identity_file: {{ getv "/datasource/key_identity_file" }}
|
|
||||||
read_mode: {{ getv "/datasource/read_mode" }}
|
|
||||||
cache_update: {{ getv "/datasource/cache_update" }}
|
|
||||||
cache_timeout: {{ getv "/datasource/cache_timeout" }}
|
|
||||||
|
|
||||||
exporter:
|
|
||||||
exporter_bind: {{ getv "/exporter/exporter_bind" }}
|
|
||||||
exporter_thread: {{ getv "/exporter/exporter_thread" }}
|
|
||||||
exporter_auth: {{ getv "/exporter/exporter_auth" }}
|
|
||||||
|
|
||||||
metrics:
|
|
||||||
{{ range $index, $element := ls "/metrics" }}
|
|
||||||
- name: {{ getv (printf "/metrics/%d/name" $index) }}
|
|
||||||
identifier_type: {{ getv (printf "/metrics/%d/identifier_type" $index) }}
|
|
||||||
nodeid: {{ getv (printf "/metrics/%d/nodeid" $index) }}
|
|
||||||
help: {{ getv (printf "/metrics/%d/help" $index) }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
time:
|
|
||||||
global_time: {{ getv "/time/global_time" }}
|
|
||||||
opcua_time: {{ getv "/time/opcua_time" }}
|
|
||||||
node_exporter_time: {{ getv "/time/node_exporter_time" }}
|
|
||||||
prometheus_time: {{ getv "/time/prometheus_time" }}
|
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
FROM openeuler/openeuler:24.03
|
|
||||||
|
|
||||||
RUN dnf update -y && \
|
|
||||||
dnf clean all && \
|
|
||||||
rm -rf /var/cache/dnf/*
|
|
||||||
|
|
||||||
RUN curl -fsSL https://github.com/abtreece/confd/releases/download/v0.20.0/confd-v0.20.0-linux-amd64.tar.gz | tar -xz -C /usr/local/bin && \
|
|
||||||
chmod +x /usr/local/bin/confd
|
|
||||||
|
|
||||||
RUN mkdir /etc/confd && \
|
|
||||||
mkdir /data
|
|
||||||
|
|
||||||
CMD [ "confd"]
|
|
||||||
Reference in New Issue
Block a user