UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit 1091f7d2 authored by Christopher O'Connell's avatar Christopher O'Connell
Browse files

Merge branch '44-add-loki-clusterlabel-to-loki-logs-shipped-with-promtail' into 'master'

add loki cluster tags to promtail

See merge request !4389
parents f391918f 3879f461
No related branches found
No related tags found
1 merge request!4389add loki cluster tags to promtail
Pipeline #3299535 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