Files
Christian Heusel 42f2f0973e prometheus: Migrate TSDB retention from CLI to config file
The command line argument is deprecated, therefore we migrate the
setting to the config file instead:

> --storage.tsdb.retention.time:
> This flag has been deprecated, use the storage.tsdb.retention.time field in the config file instead.

Link: https://prometheus.io/docs/prometheus/latest/command-line/prometheus/
Link: https://prometheus.io/docs/prometheus/latest/configuration/configuration/#tsdb
Signed-off-by: Christian Heusel <christian@heusel.eu>
2026-01-12 09:57:26 +01:00

6 lines
297 B
Django/Jinja

{% if prometheus_receive_only %}
PROMETHEUS_ARGS="--web.enable-remote-write-receiver --web.config.file=/etc/prometheus/web-config.yml --web.listen-address={{ wireguard_address }}:9090"
{% else %}
PROMETHEUS_ARGS="--web.enable-remote-write-receiver --web.listen-address=127.0.0.1:9090"
{% endif %}