Add regexes to filter out PII

Signed-off-by: Michel Hollands <michel.hollands@grafana.com>
This commit is contained in:
Michel Hollands
2023-07-07 14:04:56 +01:00
committed by Michel Hollands
parent a1cd5d36b0
commit fa2b01708c
3 changed files with 26 additions and 1 deletions

View File

@@ -17,6 +17,14 @@
{{- join ", " $list }}
{{- end }}
{{- define "agent.loki_process_targets" -}}
{{- if empty .Values.logs.piiregexes }}
{{- include "agent.loki_write_targets" . }}
{{- else }}
{{- printf "loki.process.PII.receiver" }}
{{- end }}
{{- end }}
{{- define "agent.prometheus_write_targets" -}}
{{- $list := list }}
{{- if .Values.local.metrics.enabled }}