apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  labels:
    k8s-app: cluster-autoscaler-operator
  name: cluster-autoscaler-operator
  namespace: openshift-machine-api
  annotations:
    exclude.release.openshift.io/internal-openshift-hosted: "true"
spec:
  endpoints:
    - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
      interval: 30s
      port: metrics
      scheme: https
      tlsConfig:
        caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
        serverName: cluster-autoscaler-operator.openshift-machine-api.svc
  namespaceSelector:
    matchNames:
      - openshift-machine-api
  selector:
    matchLabels:
      k8s-app: cluster-autoscaler-operator
