[修改]调整了Prometheus与opcua exporter的dockerfile路径,修正了confd模版
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
[template]
|
||||
src = "prometheus.tmpl"
|
||||
dest = "/prometheus.yml"
|
||||
dest = "/etc/prometheus/prometheus.yml"
|
||||
keys = [
|
||||
"/time/",
|
||||
]a
|
||||
|
||||
|
||||
]
|
||||
6
docker/prometheus/confd/conf.d/supervisord.toml
Normal file
6
docker/prometheus/confd/conf.d/supervisord.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
[template]
|
||||
src = "supervisord.tmpl"
|
||||
dest = "/etc/supervisord/supervisord.conf"
|
||||
keys = [
|
||||
"/time/"
|
||||
]
|
||||
18
docker/prometheus/confd/templates/supervisord.tmpl
Normal file
18
docker/prometheus/confd/templates/supervisord.tmpl
Normal file
@@ -0,0 +1,18 @@
|
||||
[supervisord]
|
||||
nodaemon=true ; 让 supervisor 运行在前台,保持容器不退出
|
||||
logfile=/var/log/supervisor/supervisord.log
|
||||
pidfile=/var/run/supervisord.pid
|
||||
|
||||
[program:confd]
|
||||
command=/usr/local/bin/confd -config-file /etc/confd/confd.toml
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/log/confd.err.log
|
||||
stdout_logfile=/var/log/confd.out.log
|
||||
|
||||
[program:prometheus]
|
||||
command=/usr/local/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.retention.time={{ getv "/time/storage_interval" }}
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stderr_logfile=/var/log/prometheus.err.log
|
||||
stdout_logfile=/var/log/prometheus.out.log
|
||||
Reference in New Issue
Block a user