# Configure cluster-monitoring for console-operator
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: console-operator
  namespace: openshift-console-operator
  annotations:
    include.release.openshift.io/ibm-cloud-managed: "true"
    include.release.openshift.io/self-managed-high-availability: "true"
    include.release.openshift.io/single-node-developer: "true"
spec:
  endpoints:
    - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
      interval: 30s
      path: /metrics
      port: https
      scheme: https
      tlsConfig:
        caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
        serverName: metrics.openshift-console-operator.svc
  jobLabel: component
  selector:
    matchLabels:
      name: console-operator

