Add detailed tooltips for overcommit metrics

- Add tooltips showing capacity, requests, and calculation details
- Include CPU and Memory capacity/requests in API response
- Add CSS styling for tooltip hover effects
- Show detailed breakdown: Capacity Total, Requests Total, and calculation formula
- Improve user experience with transparent overcommit information
This commit is contained in:
2025-10-01 15:33:39 -03:00
parent b7bfd33a28
commit 8984701bf3
2 changed files with 36 additions and 5 deletions

View File

@@ -196,7 +196,11 @@ async def get_cluster_status(
"cpu_overcommit_percent": cpu_overcommit_percent,
"memory_overcommit_percent": memory_overcommit_percent,
"namespaces_in_overcommit": namespaces_in_overcommit,
"resource_quota_coverage": resource_quota_coverage
"resource_quota_coverage": resource_quota_coverage,
"cpu_capacity": cpu_capacity if 'cpu_capacity' in locals() else 0,
"cpu_requests": cpu_requests if 'cpu_requests' in locals() else 0,
"memory_capacity": memory_capacity if 'memory_capacity' in locals() else 0,
"memory_requests": memory_requests if 'memory_requests' in locals() else 0
}
}