Make storage retention configurable.

This commit is contained in:
Michael Kutý 2017-09-19 15:53:36 +02:00
parent fb76aa0067
commit 3c4fb4cee0

View file

@ -1,7 +1,7 @@
{%- from "prometheus/map.jinja" import server with context %}
# Set the command-line arguments to pass to the server.
ARGS="-config.file {{server.dir.config}}/prometheus.yml -storage.local.path {{server.dir.storage}} -web.console.libraries {{server.dir.version_path}}/console_libraries -web.console.templates {{ server.dir.version_path }}/consoles {%- if server.alertmanager is defined %} -alertmanager.url {{server.alertmanager.get('protocol', 'http')}}://{{server.alertmanager.get('host', 'localhost')}}:{{server.alertmanager.get('port', 9093)}}{%- endif %}"
ARGS="-config.file {{server.dir.config}}/prometheus.yml -storage.local.path {{server.dir.storage}} -web.console.libraries {{server.dir.version_path}}/console_libraries -web.console.templates {{ server.dir.version_path }}/consoles {%- if server.alertmanager is defined %} -alertmanager.url {{server.alertmanager.get('protocol', 'http')}}://{{server.alertmanager.get('host', 'localhost')}}:{{server.alertmanager.get('port', 9093)}}{%- endif %} -storage.local.retention {{ server.storage.get('retention', 360) }}0m0s"
# Prometheus supports the following options: