diff --git a/bitnami/mongodb-sharded/templates/servicemonitor.yaml b/bitnami/mongodb-sharded/templates/servicemonitor.yaml index b528d209a..36b555e13 100644 --- a/bitnami/mongodb-sharded/templates/servicemonitor.yaml +++ b/bitnami/mongodb-sharded/templates/servicemonitor.yaml @@ -14,7 +14,7 @@ spec: selector: matchLabels: {{- include "mongodb-sharded.matchLabels" . | nindent 6 }} endpoints: - - port: 9216 + - port: metrics {{- if .Values.metrics.serviceMonitor.interval }} interval: {{ .Values.metrics.serviceMonitor.interval }} {{- end }}