diff --git a/charts/podinfo/templates/servicemonitor.yaml b/charts/podinfo/templates/servicemonitor.yaml index e356479..8a02fd8 100644 --- a/charts/podinfo/templates/servicemonitor.yaml +++ b/charts/podinfo/templates/servicemonitor.yaml @@ -10,6 +10,9 @@ spec: - path: /metrics port: http interval: {{ .Values.serviceMonitor.interval }} + namespaceSelector: + matchNames: + - {{ .Release.Namespace }} selector: matchLabels: {{- include "podinfo.selectorLabels" . | nindent 6 }}