apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
  labels:
    release: self-monitoring
  name: {{ .Release.Name }}-monitor
  namespace: self-monitoring
spec:
  namespaceSelector:
    matchNames:
      - observability
  selector:
    matchLabels:
      app: {{ .Release.Name }}
  podMetricsEndpoints:
    - port: http-metrics
      path: /metrics
      interval: 30s
