From accc94d796d0d8f5aa56a6fccea1045e28357abc Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 16 Nov 2024 14:10:44 +0000 Subject: [PATCH] Only retain loki logs for 14d --- kubernetes/namespaces/loki/loki_values.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kubernetes/namespaces/loki/loki_values.yml b/kubernetes/namespaces/loki/loki_values.yml index b9156e0c..530620bd 100644 --- a/kubernetes/namespaces/loki/loki_values.yml +++ b/kubernetes/namespaces/loki/loki_values.yml @@ -34,6 +34,10 @@ loki: retention_period: 30d # Enable volume querying endpoint (for Grafana Explore Logs) volume_enabled: true + retention_stream: + - selector: '{app_container="/loki"}' + priority: 1 + period: 14d singleBinary: # Set replicas to 3 again