UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 3879f461 authored by Jimmy Ungerman's avatar Jimmy Ungerman
Browse files

add loki cluster tags to promtail

parent e2edfbd7
No related branches found
No related tags found
1 merge request!4389add loki cluster tags to promtail
Pipeline #3296727 passed
......@@ -3,6 +3,7 @@
{{- end }}
{{- define "bigbang.defaults.promtail" -}}
{{- $clusterName := ( default "logging-loki" .Values.loki.clusterName ) }}
hostname: {{ .Values.hostname }}
image:
......@@ -44,6 +45,11 @@ 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment