diff --git a/docker/prometheus/confd/templates/supervisord.tmpl b/docker/prometheus/confd/templates/supervisord.tmpl index e7bce46..2e76111 100644 --- a/docker/prometheus/confd/templates/supervisord.tmpl +++ b/docker/prometheus/confd/templates/supervisord.tmpl @@ -11,7 +11,7 @@ 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"}}{{ getv "/time/storage_interval_unit")}} +command=/usr/local/bin/prometheus --config.file=/etc/prometheus/prometheus.yml --storage.tsdb.retention.time={{ getv "/time/storage_interval"}}{{ getv "/time/storage_interval_unit"}} autostart=true autorestart=true stderr_logfile=/var/log/prometheus.err.log