feat: add KVM HANA stacking KPI#905
Conversation
|
Warning Review limit reached
More reviews will be available in 21 minutes and 6 seconds. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds a new KPI plugin that measures total RAM allocated to HANA database instances on KVM hypervisors, reporting metrics per project and compute host. The implementation includes Helm template declarations, Go KPI logic with SQL aggregation, hypervisor enumeration, and comprehensive test coverage with multiple scenarios. ChangesKVM HANA Stacking KPI
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@helm/bundles/cortex-nova/templates/kpis_kvm.yaml`:
- Around line 37-41: The kvm-hana-stacking KPI declares dependencies.datasources
with "nova-servers", "nova-flavors" and "identity-projects" but uses
identity.Domain (openstack_domains) in kvm_hana_stacking.go; update the KPI
definition in helm/bundles/cortex-nova/templates/kpis_kvm.yaml for the
kvm-hana-stacking entry by adding "identity-domains" to the
dependencies.datasources list so the controller waits for the identity-domains
syncer (which populates openstack_domains) before registering the KPI.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: f79d2385-452d-462e-8b4e-2a7e70152f02
📒 Files selected for processing (4)
helm/bundles/cortex-nova/templates/kpis_kvm.yamlinternal/knowledge/kpis/plugins/infrastructure/kvm_hana_stacking.gointernal/knowledge/kpis/plugins/infrastructure/kvm_hana_stacking_test.gointernal/knowledge/kpis/supported_kpis.go
Test Coverage ReportTest Coverage 📊: 69.6% |
No description provided.