diff --git a/otelcollector/deploy/addon-chart/azure-monitor-metrics-addon/templates/ama-metrics-deployment.yaml b/otelcollector/deploy/addon-chart/azure-monitor-metrics-addon/templates/ama-metrics-deployment.yaml index 5d02185bf..62ab46de0 100644 --- a/otelcollector/deploy/addon-chart/azure-monitor-metrics-addon/templates/ama-metrics-deployment.yaml +++ b/otelcollector/deploy/addon-chart/azure-monitor-metrics-addon/templates/ama-metrics-deployment.yaml @@ -143,6 +143,14 @@ spec: {{- end }} {{- end }} {{- end }} + {{- if .Values.AzureMonitorMetrics }} + {{- if .Values.AzureMonitorMetrics.TargetAllocatorEnabled }} + - name: OPERATOR_TARGETS_TA_IMG_VERSION + value: "{{ .Values.AzureMonitorMetrics.ImageTagTargetAllocator }}" + - name: OPERATOR_TARGETS_CFG_READER_IMG_VERSION + value: "{{ .Values.AzureMonitorMetrics.ImageTagCfgReader }}" + {{- end }} + {{- end }} - name: NODE_EXPORTER_VERSION value: "v1.6.0" # Replace this with the version shipped by default - name: AGENT_VERSION diff --git a/otelcollector/telegraf/telegraf-prometheus-collector-ta-enabled.conf b/otelcollector/telegraf/telegraf-prometheus-collector-ta-enabled.conf index 767b5cf06..d23885d23 100644 --- a/otelcollector/telegraf/telegraf-prometheus-collector-ta-enabled.conf +++ b/otelcollector/telegraf/telegraf-prometheus-collector-ta-enabled.conf @@ -200,6 +200,8 @@ nodeexportername = "$NODE_EXPORTER_NAME" kubestatename = "$KUBE_STATE_NAME" kubestateversion = "$KUBE_STATE_VERSION" + operatortargetstaimgversion = "$OPERATOR_TARGETS_TA_IMG_VERSION" + operatortargetscfgreaderimgversion = "$OPERATOR_TARGETS_CFG_READER_IMG_VERSION" nodeexporterversion = "$NODE_EXPORTER_VERSION" akvauth = "$AKVAUTH" debugmodeenabled = "$DEBUG_MODE_ENABLED"