apiVersion: monitoring.coreos.com/v1
kind: PodMonitor
metadata:
  name: elastic-operator
  namespace: elastic-operator
  labels:
    app.kubernetes.io/name: elastic-operator
    app.kubernetes.io/instance: elastic-operator
    app.kubernetes.io/version: "3.3.0"
    helm.sh/chart: eck-operator-3.3.0
    app.kubernetes.io/managed-by: Helm
spec:
  podMetricsEndpoints:
    - port: metrics
      path: /metrics
      interval: 5m
      scrapeTimeout: 30s
  namespaceSelector:
    matchNames:
      - elastic-operator
  selector:
    matchLabels:
      app.kubernetes.io/name: elastic-operator
      app.kubernetes.io/instance: elastic-operator
