From cad2eec64f416d13ed1c9e1db6ebc63d051d56c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Malmstr=C3=B6m?= Date: Tue, 28 Jul 2026 23:42:24 +0200 Subject: [PATCH] Extends the retention time for data --- modules/prometheus/templates/prometheus.default.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/prometheus/templates/prometheus.default.erb b/modules/prometheus/templates/prometheus.default.erb index 28b35d8d..21f883ff 100644 --- a/modules/prometheus/templates/prometheus.default.erb +++ b/modules/prometheus/templates/prometheus.default.erb @@ -7,8 +7,9 @@ ARGS="--config.file=/opt/prometheus/prometheus.yml \ --web.enable-lifecycle \ --storage.tsdb.path=/srv/metrics \ --storage.tsdb.no-lockfile \ - --storage.tsdb.retention.time=14d \ - --storage.tsdb.min-block-duration=2h \ - --storage.tsdb.max-block-duration=2h \ + --storage.tsdb.retention.time=365d \ + --storage.tsdb.retention.size=50GB \ + --storage.tsdb.min-block-duration=2h \ + --storage.tsdb.max-block-duration=2h \ --web.console.libraries=/scripts/prometheus/console_libraries \ --web.console.templates=/scripts/prometheus/consoles"