From 553874a0563f67f2ce128d0371108f5d9664e78a Mon Sep 17 00:00:00 2001 From: Joe Krill Date: Thu, 28 Dec 2023 15:07:31 -0500 Subject: [PATCH] Fix ServiceMonitor selector --- helm/mail/templates/service-monitor.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/helm/mail/templates/service-monitor.yaml b/helm/mail/templates/service-monitor.yaml index 4b139f8..d2bd332 100644 --- a/helm/mail/templates/service-monitor.yaml +++ b/helm/mail/templates/service-monitor.yaml @@ -23,7 +23,6 @@ spec: - {{ .Release.Namespace | quote }} selector: matchLabels: - app.kubernetes.io/instance: {{ $chart }} - prometheus: unknown + app.kubernetes.io/instance: {{ .Release.Name }} {{- end -}} {{- end -}}