otelcollector/deploy/chart/prometheus-collector/templates/prometheus-collector-daemonset.yaml [46:78]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          env:
            {{- if not .Values.useMonitoringAccount }}
            - name: CLUSTER
              value: {{ required "clusterName is required" .Values.clusterName | toString | trim | quote }}
            {{- else }}
            - name: CLUSTER
              value: {{ required "azureResourceId is required when using monitoring account" .Values.azureResourceId | toString | quote }}
            - name: AKSREGION
              value: {{ required "azureResourceRegion is required when using monitoring account" .Values.azureResourceRegion | toString | trim | lower | quote }}
            - name: MAC
              value: "true"
            - name: customEnvironment
              value: {{ required "customEnvironment is required when using monitoring account" .Values.customEnvironment | toString | trim | lower | quote }}
            - name: OMS_TLD
              value: "opinsights.azure.com"
            {{- if eq .Values.customEnvironment "arcautonomous" }}
            - name: customRegionalEndpoint
              value: {{ required "customRegionalEndpoint is required when using monitoring account in Arc Autonomous" .Values.arcAutonomousSettings.customRegionalEndpoint | toString | trim | quote }}
            - name: customGlobalEndpoint
              value: {{ required "customGlobalEndpoint is required when using monitoring account in Arc Autonomous" .Values.arcAutonomousSettings.customGlobalEndpoint | toString | trim | quote }}
            - name: customResourceEndpoint
              value: {{ required "customResourceEndpoint is required when using monitoring account in Arc Autonomous" .Values.arcAutonomousSettings.customResourceEndpoint | toString | trim | quote }}
            {{- end }}
            {{- end }}
            {{- if and (.Values.internalSettings.intEnvironment) (not .Values.useMonitoringAccount) }}
            - name: ME_ADDITIONAL_FLAGS
              value: "-FrontEndUrl https://az-int.int.microsoftmetrics.com"
            {{- end }}
            {{- if .Values.internalSettings.clusterOverride  }}
            - name: CLUSTER_OVERRIDE
              value: "true"
            {{- end }}
            - name: CONTROLLER_TYPE
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



otelcollector/deploy/chart/prometheus-collector/templates/prometheus-collector-deployment.yaml [42:74]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
          env:
            {{- if not .Values.useMonitoringAccount }}
            - name: CLUSTER
              value: {{ required "clusterName is required" .Values.clusterName | toString | trim | quote }}
            {{- else }}
            - name: CLUSTER
              value: {{ required "azureResourceId is required when using monitoring account" .Values.azureResourceId | toString | quote }}
            - name: AKSREGION
              value: {{ required "azureResourceRegion is required when using monitoring account" .Values.azureResourceRegion | toString | trim | lower | quote }}
            - name: MAC
              value: "true"
            - name: customEnvironment
              value: {{ required "customEnvironment is required when using monitoring account" .Values.customEnvironment | toString | trim | lower | quote }}
            - name: OMS_TLD
              value: "opinsights.azure.com"
            {{- if eq .Values.customEnvironment "arcautonomous" }}
            - name: customRegionalEndpoint
              value: {{ required "customRegionalEndpoint is required when using monitoring account in Arc Autonomous" .Values.arcAutonomousSettings.customRegionalEndpoint | toString | trim | quote }}
            - name: customGlobalEndpoint
              value: {{ required "customGlobalEndpoint is required when using monitoring account in Arc Autonomous" .Values.arcAutonomousSettings.customGlobalEndpoint | toString | trim | quote }}
            - name: customResourceEndpoint
              value: {{ required "customResourceEndpoint is required when using monitoring account in Arc Autonomous" .Values.arcAutonomousSettings.customResourceEndpoint | toString | trim | quote }}
            {{- end }}
            {{- end }}
            {{- if and (.Values.internalSettings.intEnvironment) (not .Values.useMonitoringAccount) }}
            - name: ME_ADDITIONAL_FLAGS
              value: "-FrontEndUrl https://az-int.int.microsoftmetrics.com"
            {{- end }}
            {{- if .Values.internalSettings.clusterOverride  }}
            - name: CLUSTER_OVERRIDE
              value: "true"
            {{- end }}
            - name: CONTROLLER_TYPE
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



