diff --git a/charts/cp-kafka-connect/templates/service.yaml b/charts/cp-kafka-connect/templates/service.yaml index 1346f6c8..7ae84c2e 100644 --- a/charts/cp-kafka-connect/templates/service.yaml +++ b/charts/cp-kafka-connect/templates/service.yaml @@ -11,6 +11,10 @@ spec: ports: - name: kafka-connect port: {{ .Values.servicePort }} + {{- if .Values.prometheus.jmx.enabled }} + - name: metrics + port: {{ .Values.prometheus.jmx.port }} + {{- end }} selector: app: {{ template "cp-kafka-connect.name" . }} release: {{ .Release.Name }}