OCPBUGS-77014: Add Azure OS disk metrics to cloud monitor tests#30840
OCPBUGS-77014: Add Azure OS disk metrics to cloud monitor tests#30840tjungblu wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@tjungblu: This pull request references Jira Issue OCPBUGS-77014, 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: openshift/coderabbit/.coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughAdds six VM metrics to the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 golangci-lint (2.5.0)Error: can't load config: unsupported version of the configuration: "" See https://golangci-lint.run/docs/product/migration-guide for migration instructions Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tjungblu 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 |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@pkg/monitortests/cloud/azure/metrics/monitortest.go`:
- Around line 313-316: fetchExtrenuousMetrics currently only compares averages
against upperThreshold, causing metrics like "Available Memory Percentage"
(which only sets lowerThreshold) to be misflagged because upperThreshold
defaults to 0; update fetchExtrenuousMetrics to check both bounds: if a metric
has lowerThreshold > 0 then flag when avg < lowerThreshold, and if it has
upperThreshold > 0 then flag when avg > upperThreshold (do not treat 0 as a
valid bound unless explicitly intended); locate the comparator logic in
fetchExtrenuousMetrics and implement separate conditional checks for
lowerThreshold and upperThreshold so metrics with only one bound behave
correctly.
- Around line 309-312: The metric map contains an incorrect key "OS Disk Latency
(Preview)" which should be "OS Disk Latency"; update that map key to "OS Disk
Latency" so the lookup used by the monitoring query (the map where
interval/upperThreshold are defined) matches Azure Monitor's actual metric name
and prevents the fail-fast behavior in the metric evaluation logic; after
renaming, run/verify the metric query against Azure to confirm the metric is
found.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository: openshift/coderabbit/.coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 91524181-ea98-45f8-9070-81769e5e458e
📒 Files selected for processing (1)
pkg/monitortests/cloud/azure/metrics/monitortest.go
Add five OS disk metrics to fetchExtrenuousMetrics with thresholds: - OS Disk Used Burst BPS Credits Percentage (threshold 75%) - OS Disk Used Burst IO Credits Percentage (threshold 75%) - OS Disk IOPS Consumed Percentage (threshold 50%) - OS Disk Bandwidth Consumed Percentage (threshold 50%) - OS Disk Latency (threshold 50ms) Warnings are raised when metric averages exceed these thresholds during the test run. Made-with: Cursor
|
/test ? |
|
/test e2e-azure-ovn-upgrade |
|
Scheduling required tests: |
|
@tjungblu: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Add five OS disk metrics to fetchExtrenuousMetrics with thresholds:
Warnings are raised when metric averages exceed these thresholds during the test run.
Made-with: Cursor
Summary by CodeRabbit
New Features
Improvements