---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: image-registry
  namespace: openshift-image-registry
spec:
  endpoints:
  - bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
    interval: 30s
    port: "5000-tcp"
    scheme: https
    path: /extensions/v2/metrics
    targetPort: 5000
    tlsConfig:
      caFile: /etc/prometheus/configmaps/serving-certs-ca-bundle/service-ca.crt
      serverName: image-registry.openshift-image-registry.svc
  namespaceSelector:
    matchNames:
    - openshift-image-registry
  selector: {}
