From 3c4fb4cee0011719caaff078fea70e3aa1c7a2a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Kut=C3=BD?= <6du1ro.n@gmail.com> Date: Tue, 19 Sep 2017 15:53:36 +0200 Subject: [PATCH] Make storage retention configurable. --- prometheus/files/default-prometheus.jinja | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus/files/default-prometheus.jinja b/prometheus/files/default-prometheus.jinja index e32efcd..901e771 100644 --- a/prometheus/files/default-prometheus.jinja +++ b/prometheus/files/default-prometheus.jinja @@ -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: