diff --git a/loki-stack-values.yaml b/loki-stack-values.yaml index ec15c24..cc988bb 100644 --- a/loki-stack-values.yaml +++ b/loki-stack-values.yaml @@ -1,5 +1,14 @@ +# https://grafana.com/docs/loki/latest/operations/storage/retention/ loki: persistence: enabled: true storageClassName: "%PVC_STORAGECLASS%" size: "%PVC_STORAGE_SIZE%" + config: + compactor: + retention_enabled: true + retention_delete_delay: "2h" + compaction_interval: "20m" + retention_delete_worker_count: 10 + limits_config: + retention_period: "168h"