diff --git a/charts/matrix-media-repo/templates/podmonitor.yaml b/charts/matrix-media-repo/templates/podmonitor.yaml index 04a48d0..eb50c30 100644 --- a/charts/matrix-media-repo/templates/podmonitor.yaml +++ b/charts/matrix-media-repo/templates/podmonitor.yaml @@ -11,9 +11,9 @@ spec: matchNames: - {{ .Release.Namespace }} podMetricsEndpoints: - - {{- if .Values.podmonitor.interval }}interval: {{ .Values.podmonitor.interval | default "30s"}}{{- end }} - path: /metrics + - path: /metrics port: metrics + {{- if .Values.podmonitor.interval }}interval: {{ .Values.podmonitor.interval }}{{- end }} selector: matchLabels: {{- include "matrix-media-repo.selectorLabels" . | nindent 6 }}