From 80e1c4d2ff93973dcd8a4c6241cf55a8de4cfa3d Mon Sep 17 00:00:00 2001 From: Peter Nguyen <1364300+kuhsaft@users.noreply.github.com> Date: Mon, 25 Nov 2019 23:15:54 -0500 Subject: [PATCH] Use named port for mongodb-sharded ServiceMonitor --- bitnami/mongodb-sharded/templates/servicemonitor.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }}