OCPNODE-4870: Render CRI-O stats config when PodAndContainerStatsFromCRI is enabled #6707
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
dgrisonnet
<!--
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.
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
PodAndContainerStatsFromCRIfeature 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 -->