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 -}}