From 65e20c47e3f1662b4eaa6331436a4b222bed79f2 Mon Sep 17 00:00:00 2001 From: sefidel Date: Tue, 1 Aug 2023 22:39:03 +0900 Subject: feat(modules/metrics): set retention period of loki logs for 120h --- modules/services/metrics.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'modules') 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 = { -- cgit 1.4.1