From 79548ff3a6e4b4069b8594439b3a18d446a81900 Mon Sep 17 00:00:00 2001 From: andersonid Date: Mon, 29 Sep 2025 20:59:32 -0300 Subject: [PATCH] =?UTF-8?q?Fix:=20removida=20redund=C3=A2ncia=20de=20m?= =?UTF-8?q?=C3=A9tricas=20e=20adicionadas=20m=C3=A9tricas=20espec=C3=ADfic?= =?UTF-8?q?as=20de=20sa=C3=BAde=20do=20cluster?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/static/index.html | 112 ++++++++++++++++++++++++++++++++++++++---- 1 file changed, 103 insertions(+), 9 deletions(-) diff --git a/app/static/index.html b/app/static/index.html index 2d793b3..554b227 100644 --- a/app/static/index.html +++ b/app/static/index.html @@ -1385,20 +1385,20 @@
- Pods : - - + CPU Overcommit : + -
- Namespaces : - - + Memory Overcommit : + -
- Critical Issues : - - + Namespaces in Overcommit : + -
- Overcommit : - - + Resource Quota Coverage : + -
@@ -2903,6 +2903,94 @@

Non-critical applications, batch jobs, or development workloads where performance isn't critical.

` + }, + 'cpu-overcommit': { + title: 'CPU Overcommit - Resource Allocation', + content: ` +
+

CPU Overcommit shows how much CPU is requested compared to available capacity.

+ +

What this means:

+ + +

Why overcommit happens:

+ +
+ ` + }, + 'memory-overcommit': { + title: 'Memory Overcommit - Memory Allocation', + content: ` +
+

Memory Overcommit shows how much memory is requested compared to available capacity.

+ +

What this means:

+ + +

Memory vs CPU:

+ +
+ ` + }, + 'namespaces-overcommit': { + title: 'Namespaces in Overcommit', + content: ` +
+

Namespaces in Overcommit shows how many namespaces have resource limits exceeding their requests.

+ +

What this means:

+ + +

Why monitor this:

+ +
+ ` + }, + 'quota-coverage': { + title: 'Resource Quota Coverage', + content: ` +
+

Resource Quota Coverage shows what percentage of namespaces have resource quotas defined.

+ +

What this means:

+ + +

Why quotas matter:

+ +
+ ` } }; @@ -2971,11 +3059,17 @@ healthSubtitle.textContent = 'All systems operational'; } - // Update metrics + // Update basic metrics (cards superiores) document.getElementById('totalPods').textContent = healthData.total_pods; document.getElementById('totalNamespaces').textContent = healthData.total_namespaces; document.getElementById('criticalIssues').textContent = healthData.critical_issues; + // Update health section metrics (métricas específicas de saúde) + document.getElementById('cpuOvercommitStatus').textContent = `${healthData.cpu_overcommit_percentage.toFixed(1)}%`; + document.getElementById('memoryOvercommitStatus').textContent = `${healthData.memory_overcommit_percentage.toFixed(1)}%`; + document.getElementById('namespacesInOvercommit').textContent = healthData.namespaces_in_overcommit; + document.getElementById('quotaCoverage').textContent = `${(healthData.resource_quota_coverage * 100).toFixed(0)}%`; + // Update overcommit status const cpuOvercommit = healthData.cpu_overcommit_percentage; const memoryOvercommit = healthData.memory_overcommit_percentage;