[PR #203] feat: add Health Score for nodes, VMs, and storages #193

Closed
opened 2026-02-26 17:37:42 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/203

State: closed
Merged: Yes


Summary

  • Add ClusterResourceHealthExtensions with score calculation:
    • Node: 100 - (cpu*0.4 + ram*0.4 + disk*0.2)
    • VM (running): 100 - (cpu*0.5 + ram*0.5), stopped: 0
    • Storage: 100 - disk*1.0
  • Add GetHealthScoreColor() in PveAdminUIHelper (≥80 OK, ≥60 Warning, <60 Danger)
  • Add HealthScoreBadge and HealthScoreGauge components
  • Add HealthScore property on ClusterResourceEx
  • Show HealthScoreGauge in Node, VM, Storage Summary panels
  • Add optional Health Score column (hidden by default) in ResourcesEx grid
  • Fix ResourcesEx: remove AllowCalculateSnapshotSize reset on refresh
  • Fix Summary icons: use correct material icon names for KSM, SWAP, IO delay

Test plan

  • Node/VM/Storage summary panels show health gauge
  • ResourcesEx grid has optional Score column (hidden by default, activatable via column picker)
  • Score colors: green ≥80, yellow ≥60, red <60
  • Stopped VMs show no score
**Original Pull Request:** https://github.com/Corsinvest/cv4pve-admin/pull/203 **State:** closed **Merged:** Yes --- ## Summary - Add `ClusterResourceHealthExtensions` with score calculation: - Node: `100 - (cpu*0.4 + ram*0.4 + disk*0.2)` - VM (running): `100 - (cpu*0.5 + ram*0.5)`, stopped: 0 - Storage: `100 - disk*1.0` - Add `GetHealthScoreColor()` in `PveAdminUIHelper` (≥80 OK, ≥60 Warning, <60 Danger) - Add `HealthScoreBadge` and `HealthScoreGauge` components - Add `HealthScore` property on `ClusterResourceEx` - Show `HealthScoreGauge` in Node, VM, Storage Summary panels - Add optional Health Score column (hidden by default) in ResourcesEx grid - Fix ResourcesEx: remove AllowCalculateSnapshotSize reset on refresh - Fix Summary icons: use correct material icon names for KSM, SWAP, IO delay ## Test plan - [ ] Node/VM/Storage summary panels show health gauge - [ ] ResourcesEx grid has optional Score column (hidden by default, activatable via column picker) - [ ] Score colors: green ≥80, yellow ≥60, red <60 - [ ] Stopped VMs show no score
kerem 2026-02-26 17:37:42 +03:00
kerem changed title from [PR #203] [MERGED] feat: add Health Score for nodes, VMs, and storages to [PR #203] feat: add Health Score for nodes, VMs, and storages 2026-03-07 19:57:26 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-admin#193
No description provided.