Add per-state duration metric to reconciliation - #2840
Conversation
99b31ad to
037fc37
Compare
baff49d to
61a1c00
Compare
A reconcile processes many component states, but existing metrics only expose whole-reconcile totals, so a slow state cannot be identified from metrics alone. Add a gpu_operator_state_seconds histogram labeled by controller and state, covering the ClusterPolicy, GPUCluster, and NVIDIADriver paths. Signed-off-by: Rajath Agasthya <ragasthya@nvidia.com>
61a1c00 to
0b0d474
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: QUIET Plan: Enterprise Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. 📝 WalkthroughWalkthroughThe change adds the Merge Risk: ⚪ Minimal · up to The change adds per-state reconciliation duration metrics without any identified merge-blocking risk; it is merge-ready after normal checks and review. Comment |
Description
A reconcile processes many component states, but existing metrics only
expose whole-reconcile totals, so a slow state cannot be identified
from metrics alone. Add a
gpu_operator_state_secondshistogramlabeled by controller and state, covering the ClusterPolicy,
GPUCluster, and NVIDIADriver paths.
Checklist
make lint)make validate-generated-assets)make validate-modules)Testing
go test ./controllers/ ./internal/state/;go build;gofmt.