← Back to Pull requests

OCPNODE-4870: Render CRI-O stats config when PodAndContainerStatsFromCRI is enabled #6707

Closed
unknown closed this pull request without merging on Nov 20, 2026 01:25 UTC
View on GitHub
unknown unknown commented on Nov 02, 2026 22:03 UTC
Author

<!--
If this is a bug fix, make sure your description includes "Fixes: #xxxx", or
"Closes: #xxxx"

Please provide the following information:
-->

- What I did

Add the following config to cri-o when the PodAndContainerStatsFromCRI is enabled.

    [crio.stats]
    collection_period = 10
    included_pod_metrics = [
        "all",
    ]

The options are required in OCP otherwise when the feature is enabled, calls to /metrics/cadvisor will timeout as seen in https://github.com/openshift/api/pull/2942.

The timeout are expected because cri-o is not optimized enough yet to be able to handle on-demand metric collection in OCP where multiple clients are scraping /metrics/cadvisor simultaneously.

In the future, these options will be the default in cri-o, but for now we need to set them manually to enable the feature as TP.

- How to verify it

We will be able to verify it after https://github.com/openshift/api/pull/2942 goes in, but because the API can't merged without this change, the machine-config-operator PR will need to be merged first.

- Description for the changelog
<!--
Write a short (one line) summary that describes the changes in this
pull request for inclusion in the changelog:
-->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
<!-- coderabbit-ai-generated:v1 -->

Summary by CodeRabbit

New Features
When the PodAndContainerStatsFromCRI feature is enabled, generated CRI-O configuration collects pod and container statistics with a 10-second collection period and includes all pod metrics.
When the feature is disabled, the statistics configuration is omitted.
This behavior applies to generated CRI-O configurations for arbiter, master, and worker nodes.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 228 lines (+171 / -57) across 2 files Reviewer: dgrisonnet Review duration: 24682m
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.60) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.60 · 228 lines diff across 2 files
0.60
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.325
Shallow Review Depth shallow_review_depth
0.289
Sensitive Paths sensitive_paths
0.060
Real PR Conversation Timeline
1 comments
"Review active on #6707"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed sensitive_module
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 60.1% (MEDIUM) · Higher = larger blast radius
60.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 23.8% · Safe to merge
23.8%