Uploaded image for project: 'OpenShift Container Platform (OCP) Strategy'
  1. OpenShift Container Platform (OCP) Strategy
  2. OCPSTRAT-2556

CRI Stats Integration in CRI-O (KEP-2371 Alignment): TP 4.22

XMLWordPrintable

    • Product / Portfolio Work
    • None
    • 50% To Do, 50% In Progress, 0% Done
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Problem Statement

      Today, OpenShift’s kubelet collects pod and container metrics (CPU, memory, network I/O, etc.) via cAdvisor.
      However:

      • Both kubelet (cAdvisor) and CRI-O gather similar runtime stats, creating duplication.
      • High-cardinality metrics, especially container_network_* for host-networked pods, significantly inflate Prometheus storage and scrape costs.
      • Maintaining and evolving metrics across two code paths (cAdvisor + CRI-O) is cumbersome and error-prone.

      To remain upstream-aligned and reduce duplication, OpenShift needs to begin adopting the CRI Stats architecture.


      Goal

      Introduce a Technology Preview (TP) in OpenShift 4.21 that allows kubelet to consume pod and container stats directly from CRI-O via the CRI Stats API (PodStats, ContainerStats, NetworkStats).

      The feature will:

      • Shift metric collection responsibility to CRI-O.
      • Simplify metric aggregation and reduce duplication.
      • Provide an early opt-in path for testing performance, accuracy, and backward compatibility.
      • Lay groundwork for high-cardinality reduction in OpenShift 4.22 when this becomes the default.

              gausingh@redhat.com Gaurav Singh
              gausingh@redhat.com Gaurav Singh
              None
              None
              Ryan Phillips Ryan Phillips
              Aruna Naik Aruna Naik
              Michael Burke Michael Burke
              Eric Rich Eric Rich
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: