OCPBUGS-54864: reduce verbosity of skipping metrics log messages - #1439
OCPBUGS-54864: reduce verbosity of skipping metrics log messages#1439savio87 wants to merge 1 commit into
Conversation
|
@savio87: This pull request references Jira Issue OCPBUGS-54864, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
WalkthroughThe change raises log verbosity for skipped non-boolean ClusterVersion and ClusterOperator conditions. Metric behavior remains unchanged. ChangesCondition logging
Estimated code review effort: 1 (Trivial) | ~2 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: savio87 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @savio87. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Regular contributors should join the org to skip this step. Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
Hi, this is my first contribution to this repo. Could a maintainer please: |
Bug
https://redhat.atlassian.net/browse/OCPBUGS-54864
The CVO pod logs excessive "skipping metrics" messages on healthy clusters. The "skipping metrics for ... ClusterOperator condition ...=Unknown (neither True nor False)" message fires on every Prometheus scrape (~30s) for every ClusterOperator condition that is Unknown, producing 61,919+ log lines per day on a fresh 4.17.z cluster.
Root Cause
The log uses klog.V(2), but CVO runs with --v=2 in production, so these messages always appear. Since Unknown is a normal condition state (not an error), this is purely diagnostic noise.
Fix
Change klog.V(2) to klog.V(4) for both "skipping metrics" log lines in pkg/cvo/metrics.go:
This keeps the log available for debugging (at --v=4) but silences it in production (--v=2).
Summary by CodeRabbit