Use named port for mongodb-sharded ServiceMonitor

This commit is contained in:
Peter Nguyen
2019-11-25 23:15:54 -05:00
committed by GitHub
parent 9d6071d5e2
commit 80e1c4d2ff

View File

@@ -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 }}