Add capacity buffer oldest reconciliation timestamp metric #9356
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 269 lines diff across 3 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.335
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #9356"
general
weight: 0.35
x13n
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds a new metric, capacity_buffer_oldest_reconciliation_timestamp_seconds, to monitor the Capacity Buffers controller. This metric tracks the oldest Capacity Buffer was last successfully processed, helping to ensure the controller loop is operating as expected.
The metric uses a label
new_bufferto differentiate between newly created buffers and those that have been processed at least once.Implementation:
The controller caches the timestamp of the last successful processing for each buffer (both supported and unsupported buffers).
A Prometheus collector calculates iterates over the cached objects to get the min value for new buffers and processed ones.
Which issue(s) this PR fixes:
Special notes for your reviewer:
Does this PR introduce a user-facing change?
<!--
If no, just write "NONE" in the release-note block below.
If yes, a release note is required:
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
docs-->
``
release-noteAdd capacity_buffer_oldest_reconciliation_timestamp_seconds metric
``