[修改]prometheus的confd模板修改

This commit is contained in:
2024-09-23 14:45:24 +08:00
committed by Coding
parent b7edc8f1a7
commit 359709d7b5
3 changed files with 5 additions and 5 deletions

View File

@@ -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