UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects

fix cluster label section to external_label

Merged Jimmy Ungerman requested to merge cluster-tag-external-label into master
1 file
+ 4
5
Compare changes
  • Side-by-side
  • Inline
@@ -45,16 +45,15 @@ imagePullSecrets:
{{- if .Values.loki.enabled }}
config:
snippets:
extraRelabelConfigs:
- action: replace
replacement: {{ $clusterName }}
target_label: cluster
clients:
{{- if eq .Values.loki.strategy "monolith" }}
- url: http://logging-loki.logging.svc.cluster.local:3100/loki/api/v1/push
external_labels:
cluster: {{ $clusterName }}
{{- else }}
- url: http://logging-loki-write.logging.svc.cluster.local:3100/loki/api/v1/push
external_labels:
cluster: {{ $clusterName }}
{{- end }}
{{- end }}
# If loki is disabled and promtail is not
Loading