From d8f1d4b95a26f01370a5e99a748831627b910a92 Mon Sep 17 00:00:00 2001 From: Amit Kumar Date: Fri, 1 Mar 2024 23:55:47 +0000 Subject: [PATCH] improve retention config --- .../kubernetes/services/monitoring/loki/values_loki.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/monitoring/loki/values_loki.yaml b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/monitoring/loki/values_loki.yaml index 0eb8923055..e2ed3545a1 100644 --- a/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/monitoring/loki/values_loki.yaml +++ b/src/_nebari/stages/kubernetes_services/template/modules/kubernetes/services/monitoring/loki/values_loki.yaml @@ -19,18 +19,20 @@ loki: # minio s3 shared_store: s3 # how often compaction will happen - compaction_interval: 1m + compaction_interval: 1h # should delete old logs after rentention delete delay # ideally we would want to do storage based rentention, but this is not # currently implemented in loki, that's why we're doing time based retention. retention_enabled: true # is the delay after which the Compactor will delete marked chunks. - retention_delete_delay: 1m + retention_delete_delay: 1h # specifies the maximum quantity of goroutine workers instantiated to delete chunks. retention_delete_worker_count: 150 limits_config: # The minimum retention period is 24h. + # This is reasonable in most cases, but if people would like to retain logs for longer + # then they can override this variable from nebari-config.yaml retention_period: 60d schema_config: @@ -54,7 +56,6 @@ loki: # Shared store for keeping index files shared_store: s3 - # Configuration for the write pod(s) write: # -- Number of replicas for the write