fix(monitor): honour storage exclusions in the PVE storage capacity alert

This commit is contained in:
MacRimi
2026-09-29 20:56:02 +02:00
parent 438cb935d0
commit f421ac1cb1
3 changed files with 27 additions and 1 deletions
+3
View File
@@ -6616,6 +6616,7 @@ class HealthMonitor:
warn_pct, crit_pct = self._read_capacity_thresholds("pve_storage")
available_storages = storage_status.get('available', []) or []
excluded_names = health_persistence.get_excluded_storage_names('health')
checks: Dict[str, Dict[str, Any]] = {}
critical_labels: list[str] = []
warning_labels: list[str] = []
@@ -6631,6 +6632,8 @@ class HealthMonitor:
continue
pct = (used / total) * 100
name = st.get('name', 'unknown')
if name in excluded_names:
continue
label = f'{name} ({stype})'
entry = {
'detail': f'{pct:.1f}% used',