Merge pull request #26 from grafana/fix_logline_filtering
Fix logline filtering
This commit is contained in:
commit
d389a9f741
@ -54,7 +54,7 @@ data:
|
|||||||
|
|
||||||
{{- if not (empty .Values.logs.retain) }}
|
{{- if not (empty .Values.logs.retain) }}
|
||||||
stage.match {
|
stage.match {
|
||||||
selector = "{cluster=\"{{- .Values.clusterName -}}\"} !~ \"{{ join "|" .Values.logs.retain }}\""
|
selector = "{cluster=\"{{- .Values.clusterName -}}\", namespace=\"{{- .Values.lokiNamespace -}}\"} !~ \"{{ join "|" .Values.logs.retain }}\""
|
||||||
action = "drop"
|
action = "drop"
|
||||||
}
|
}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -5,6 +5,7 @@ namespacesToMonitor:
|
|||||||
- tempo
|
- tempo
|
||||||
# The name of the cluster where this will be installed
|
# The name of the cluster where this will be installed
|
||||||
clusterName: "meta-monitoring"
|
clusterName: "meta-monitoring"
|
||||||
|
lokiNamespace: "loki"
|
||||||
|
|
||||||
# Set to true to write logs, metrics or traces to Grafana Cloud
|
# Set to true to write logs, metrics or traces to Grafana Cloud
|
||||||
cloud:
|
cloud:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user