itamae/cookbooks/prometheus/files/etc/supervisor/conf.d/prometheus-targets.conf

9 lines
357 B
Plaintext

[program:prometheus-targets]
command=/usr/local/bin/consul-template -consul-addr 127.0.0.1:8500 -template "/etc/consul-template.d/prometheus-targets.tmpl:/etc/prometheus.d/targets/targets.yml"
stdout_logfile=/var/log/supervisor/prometheus-targets.log
redirect_stderr=true
stdout_logfile_maxbytes=1MB
stdout_logfile_backups=5
autorestart=true
stopsignal=INT