diff --git a/charts/meta-monitoring/templates/agent/config.yaml b/charts/meta-monitoring/templates/agent/config.yaml index e55d100..ef0d53a 100644 --- a/charts/meta-monitoring/templates/agent/config.yaml +++ b/charts/meta-monitoring/templates/agent/config.yaml @@ -54,7 +54,7 @@ data: {{- if not (empty .Values.logs.retain) }} stage.match { - selector = "{cluster=\"{{- .Values.clusterName -}}\"} !~ \"{{ join "|" .Values.logs.retain }}\"" + selector = "{cluster=\"{{- .Values.clusterName -}}\", namespace=\"{{- .Values.lokiNamespace -}}\"} !~ \"{{ join "|" .Values.logs.retain }}\"" action = "drop" } {{- end }} diff --git a/charts/meta-monitoring/values.yaml b/charts/meta-monitoring/values.yaml index 0a8efde..8e2d4d5 100644 --- a/charts/meta-monitoring/values.yaml +++ b/charts/meta-monitoring/values.yaml @@ -5,6 +5,7 @@ namespacesToMonitor: - tempo # The name of the cluster where this will be installed clusterName: "meta-monitoring" +lokiNamespace: "loki" # Set to true to write logs, metrics or traces to Grafana Cloud cloud: