apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: clusters-service
  namespace: '{{ .Release.Namespace }}'
spec:
  endpoints:
  - interval: 30s
    path: /metrics
    port: metrics
    scheme: http
  namespaceSelector:
    matchNames:
    - '{{ .Release.Namespace }}'
  selector:
    matchLabels:
      app: clusters-service
      port: metrics
