apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: config-operator
  namespace: openshift-config-operator
spec:
  endpoints:
  - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    interval: 30s
    port: https
    scheme: https
    tlsConfig:
      caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
      serverName: metrics.openshift-config-operator.svc
  jobLabel: component
  namespaceSelector:
    matchNames:
    - openshift-config-operator
  selector:
    matchLabels:
      app: openshift-config-operator

