apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    app.kubernetes.io/component: storage
    app.kubernetes.io/managed-by: cdi-operator
    cdi.kubevirt.io: ""
    openshift.io/cluster-monitoring: ""
    prometheus.cdi.kubevirt.io: "true"
  name: service-monitor-cdi
  namespace: "{{ namespace }}"
spec:
  endpoints:
    - bearerTokenSecret:
        key: ""
      port: metrics
      scheme: http
      tlsConfig:
        ca: {}
        cert: {}
        insecureSkipVerify: true
  namespaceSelector:
    matchNames:
      - "{{ namespace }}"
  selector:
    matchLabels:
      prometheus.cdi.kubevirt.io: "true"