From a3871ed5d1f97ef71311d67cdadefba9509ba47b Mon Sep 17 00:00:00 2001 From: Aaron Benton Date: Sun, 9 Jun 2024 23:47:19 -0400 Subject: [PATCH] Added support for profiles and logs extraConfig Resolves #565 --- charts/k8s-monitoring/templates/_configs.tpl | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/charts/k8s-monitoring/templates/_configs.tpl b/charts/k8s-monitoring/templates/_configs.tpl index 2b9d1eec2..2727b51e0 100644 --- a/charts/k8s-monitoring/templates/_configs.tpl +++ b/charts/k8s-monitoring/templates/_configs.tpl @@ -99,6 +99,10 @@ {{- if and .Values.traces.enabled }} {{- include "alloy.config.tracesService" . }} + + {{- if .Values.traces.extraConfig }} + {{- tpl .Values.traces.extraConfig $ | indent 0 }} + {{- end }} {{- end }} {{- include "alloy.config.logging" .Values.alloy.logging}} @@ -152,4 +156,8 @@ {{- include "alloy.config.profilesService" . }} {{- include "alloy.config.logging" (index .Values "alloy-profiles").logging }} {{- include "alloy.config.liveDebugging" (index .Values "alloy-profiles").liveDebugging}} + + {{- if .Values.profiles.extraConfig }} + {{- tpl .Values.profiles.extraConfig $ | indent 0 }} + {{- end }} {{- end -}}