Merge pull request #27 from grafana/filter_out_errors_local_loki

Filter out log lines for local Loki as well
This commit is contained in:
Michel Hollands 2024-03-28 15:55:51 +00:00 committed by GitHub
commit f61913d3da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,7 @@ data:
{{- if not (empty .Values.logs.retain) }}
stage.match {
selector = "{cluster=\"{{- .Values.clusterName -}}\", namespace=\"{{- .Values.lokiNamespace -}}\"} !~ \"{{ join "|" .Values.logs.retain }}\""
selector = "{cluster=\"{{- .Values.clusterName -}}\", namespace=~\"{{- .Values.lokiNamespace -}}|{{- .Values.metaMonitoringNamespace -}}\", pod=~\"loki.*\"} !~ \"{{ join "|" .Values.logs.retain }}\""
action = "drop"
}
{{- end }}

View File

@ -5,6 +5,7 @@ namespacesToMonitor:
- tempo
# The name of the cluster where this will be installed
clusterName: "meta-monitoring"
metaMonitoringNamespace: "mmc"
lokiNamespace: "loki"
# Set to true to write logs, metrics or traces to Grafana Cloud