---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
  annotations:
    capability.openshift.io/name: ImageRegistry
    include.release.openshift.io/hypershift: "true"
    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"
  creationTimestamp: "2025-10-27T11:40:19Z"
  generation: 1
  managedFields:
  - apiVersion: monitoring.coreos.com/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:annotations:
          .: {}
          f:capability.openshift.io/name: {}
          f:include.release.openshift.io/hypershift: {}
          f:include.release.openshift.io/ibm-cloud-managed: {}
          f:include.release.openshift.io/self-managed-high-availability: {}
          f:include.release.openshift.io/single-node-developer: {}
        f:ownerReferences:
          .: {}
          k:{"uid":"d36bdf59-d268-4238-afb0-5e0b21cca1a4"}: {}
      f:spec:
        .: {}
        f:groups:
          .: {}
          k:{"name":"pvc-problem-detector.rules"}:
            .: {}
            f:name: {}
            f:rules: {}
    manager: cluster-version-operator
    operation: Update
    time: "2025-10-27T11:40:19Z"
  name: image-registry-operator-alerts
  namespace: openshift-image-registry
  ownerReferences:
  - apiVersion: config.openshift.io/v1
    controller: true
    kind: ClusterVersion
    name: version
    uid: d36bdf59-d268-4238-afb0-5e0b21cca1a4
  resourceVersion: "18142"
  uid: dc0ba73c-e31b-44ae-bc15-0aab1ff3068f
spec:
  groups:
  - name: pvc-problem-detector.rules
    rules:
    - alert: ImageRegistryStorageReadOnly
      annotations:
        description: The image registry storage is read-only. Read-only storage affects
          direct pushes to the image registry, and pull-through proxy caching. In
          the case of pull-through proxy caching, read-only storage is particularly
          important because without it the image registry won't be actually caching
          anything. Please verify your backing storage solution and make sure the
          volume mounted on the image-registry pods is writable to avoid potential
          outages.
        message: The image registry storage is read-only and no images will be committed
          to storage.
        runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-image-registry-operator/ImageRegistryStorageReadOnly.md
        summary: The image registry storage is read-only and no images will be committed
          to storage.
      expr: sum without(instance, pod, operation) (rate(imageregistry_storage_errors_total{code="READ_ONLY_FILESYSTEM"}[5m]))
        > 0
      for: 10m
      labels:
        kubernetes_operator_part_of: image-registry
        severity: warning
    - alert: ImageRegistryStorageFull
      annotations:
        description: The image registry storage disk is full. A full disk affects
          direct pushes to the image registry, and pull-through proxy caching. In
          the case of pull-through proxy caching, disk space is particularly important
          because without it the image registry won't be actually caching anything.
          Please verify your backing storage solution and make sure the volume mounted
          on the image-registry pods have enough free disk space to avoid potential
          outages.
        message: The image registry storage disk is full and no images will be committed
          to storage.
        runbook_url: https://github.com/openshift/runbooks/blob/master/alerts/cluster-image-registry-operator/ImageRegistryStorageFull.md
        summary: The image registry storage disk is full and no images will be committed
          to storage.
      expr: sum without(instance, pod, operation) (rate(imageregistry_storage_errors_total{code="DEVICE_OUT_OF_SPACE"}[5m]))
        > 0
      for: 10m
      labels:
        kubernetes_operator_part_of: image-registry
        severity: warning
