diff --git a/helm/templates/deployment.yaml b/helm/templates/deployment.yaml index 139e4df..a568202 100644 --- a/helm/templates/deployment.yaml +++ b/helm/templates/deployment.yaml @@ -39,7 +39,7 @@ spec: checksum/configmap: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} {{- end }} {{- if $metrics.enabled }} - prometheus.io/port: {{ $metrics.prometheus.port | quote }} + prometheus.io/port: {{ .Values.env.targetPort | quote }} prometheus.io/scrape: {{ $metrics.prometheus.scrape | quote }} {{- end }} {{- if .Values.podAnnotations }}