diff --git a/charts/hedera-network/config-files/otel-collector-config.yaml b/charts/hedera-network/config-files/otel-collector-config.yaml index d6852e307..764e6256d 100644 --- a/charts/hedera-network/config-files/otel-collector-config.yaml +++ b/charts/hedera-network/config-files/otel-collector-config.yaml @@ -18,7 +18,7 @@ exporters: prometheus: endpoint: "0.0.0.0:8889" const_labels: - label1: "value1" + label1: "{{ .otelDefaults.nameOverride }}-label1" logging: diff --git a/charts/hedera-network/templates/configmaps/otel-collector-cm.yaml b/charts/hedera-network/templates/configmaps/otel-collector-cm.yaml index 7e2421e61..a56e7c42a 100644 --- a/charts/hedera-network/templates/configmaps/otel-collector-cm.yaml +++ b/charts/hedera-network/templates/configmaps/otel-collector-cm.yaml @@ -4,4 +4,4 @@ metadata: name: otel-collector-cm data: config.yaml: | - {{- .Files.Get "config-files/otel-collector-config.yaml" | nindent 4 }} + {{- tpl (.Files.Get "config-files/otel-collector-config.yaml") ( dict "otelDefaults" $.Values.defaults.sidecars.otelCollector "Template" $.Template ) | nindent 4 }}