apiVersion: "monitoring.coreos.com/v1"
kind: ServiceMonitor
metadata:
  labels:
    helm.sh/chart: external-secrets-2.5.0
    app.kubernetes.io/name: external-secrets-webhook
    app.kubernetes.io/instance: external-secrets
    app.kubernetes.io/version: "v2.5.0"
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/metrics: "webhook"
  name: external-secrets-webhook-metrics
  namespace: "external-secrets"
spec:
  selector:
    matchLabels:
      app.kubernetes.io/name: external-secrets-webhook
      app.kubernetes.io/instance: external-secrets
      app.kubernetes.io/metrics: "webhook"
  namespaceSelector:
    matchNames:
      - external-secrets
  endpoints:
    - port: metrics
      interval: 30s
      scrapeTimeout: 25s
      honorLabels: false
