about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/services/metrics.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/services/metrics.nix b/modules/services/metrics.nix
index 145d1fe..6496a23 100644
--- a/modules/services/metrics.nix
+++ b/modules/services/metrics.nix
@@ -48,6 +48,7 @@ in
             ring.replication_factor = 1;
             final_sleep = "0s";
           };
+
           chunk_idle_period = "1h";
           max_chunk_age = "1h";
           chunk_target_size = 1048576; # 1.5M
@@ -82,6 +83,8 @@ in
         limits_config = {
           reject_old_samples = true;
           reject_old_samples_max_age = "168h";
+
+          retention_period = "120h";
         };
 
         chunk_store_config = {
@@ -89,8 +92,8 @@ in
         };
 
         table_manager = {
-          retention_deletes_enabled = false;
-          retention_period = "0s";
+          retention_deletes_enabled = true;
+          retention_period = "120h";
         };
 
         compactor = {