Commit Graph

162 Commits

Author SHA1 Message Date
20ae326158 Fix: historical analysis implementation with OpenShift-specific Prometheus queries 2025-09-30 21:01:00 -03:00
f3dff8be76 Fix JavaScript error in historical analysis modal - preserve DOM elements when loading metrics 2025-09-30 20:50:25 -03:00
3445f58a11 Update Prometheus queries to use OpenShift-specific metrics
- Use node_namespace_pod_container:container_cpu_usage_seconds_total:sum_irate for CPU usage
- Use container_memory_working_set_bytes with kubelet job for memory usage
- Use kube_pod_container_resource_requests/limits with kube-state-metrics job
- Add workload-specific filtering to match OpenShift dashboard behavior
- This should resolve the 'insufficient data' issue by using the same metrics as OpenShift
2025-09-30 20:42:59 -03:00
0068db5a9e Fix remaining indentation error in routes.py 2025-09-30 18:07:05 -03:00
7efbd94b50 Fix indentation errors in routes.py 2025-09-30 18:06:48 -03:00
5f3f737b3a Add simulated data fallback for historical analysis when Prometheus is not accessible 2025-09-30 18:06:10 -03:00
2b2b3c23b2 Fix: Historical analysis now shows real consumption numbers and percentages relative to cluster totals 2025-09-30 18:03:17 -03:00
5c5643576f Fix: Add query_range method to PrometheusClient for historical metrics 2025-09-30 17:45:18 -03:00
a847f0cd92 Fix: Add missing PrometheusClient import for workload metrics endpoint 2025-09-30 17:43:22 -03:00
f0d3831263 Feature: Add real Prometheus metrics visualization for historical analysis 2025-09-30 17:41:39 -03:00
d683704593 Fix: Integrate historical analysis validations in cluster status endpoint 2025-09-30 17:37:09 -03:00
a986e10b0a Phase 1: Mark Enhanced Validation & Categorization as COMPLETED 2025-09-30 16:49:41 -03:00
f3b8022224 Phase 1.2: Complete Historical Analysis Integration - Add insufficient data detection, seasonal patterns, and integrate in main dashboard 2025-09-30 16:48:31 -03:00
c2d2b46b11 Revert: Put AIAgents-Support.md back in .gitignore as it's for AI agent context only 2025-09-30 16:41:56 -03:00
1abe4c9f09 Fix: Remove AIAgents-Support.md from .gitignore and update with current file structure 2025-09-30 16:31:44 -03:00
459e46e2b0 Update: Documentation files with current implementation status and achievements 2025-09-30 16:29:15 -03:00
1052740f21 Remove: Duplicate functions with alerts that were overriding the modal functionality 2025-09-30 13:49:13 -03:00
bd2af094e6 Fix: Remove alert from analyzeNamespace function and use proper modal 2025-09-30 13:46:16 -03:00
4ce538c35c Replace alerts with proper modals for namespace analysis and fix functionality 2025-09-30 13:44:17 -03:00
3bf0c99fd6 Add: Simple namespace analysis with detailed pod and container information 2025-09-30 13:40:55 -03:00
e2311b6967 Add: Detailed namespace analysis with modal popup showing pod and container details 2025-09-30 13:37:55 -03:00
96c29d4179 Fix: Problem Summary table displaying namespace names and pod counts correctly 2025-09-30 13:34:36 -03:00
c91b517138 Fix: dict object has no attribute name error 2025-09-30 12:27:01 -03:00
9f8cad6803 Fix: dict object has no attribute resources error 2025-09-30 12:25:20 -03:00
ea309e8ef0 Fix: ContainerResource object is not subscriptable error 2025-09-30 12:23:46 -03:00
af42204897 Fix API endpoint - use correct /api/v1/cluster/status 2025-09-30 12:14:17 -03:00
883c50a104 Simplify dashboard - remove redundancies and create pragmatic interface 2025-09-30 10:45:07 -03:00
fa8f3a41e5 Implement simplified UI/UX with health scores and grouped validations 2025-09-30 09:37:49 -03:00
021ce06323 Fix: corrigido erro 500 na análise por namespace - adicionado suporte para severidade 'info' 2025-09-29 21:48:43 -03:00
222761dbda Fix: reorganizada navegação - Historical Analysis movido para o final com divisor 2025-09-29 21:45:36 -03:00
16827e1084 Fix: corrigido erro de sintaxe elif sem if 2025-09-29 21:21:52 -03:00
ee4b22693e Fix: adicionado métricas detalhadas de containers e removido validações duplicadas 2025-09-29 21:21:34 -03:00
e7a5afafe7 Fix: corrigido tolerância excessiva na validação de ratio CPU/Memory 2025-09-29 21:15:05 -03:00
3f9dae993f UI: removido fundo roxo do Cluster Health Overview, deixado mais sóbrio como Resource Consumption 2025-09-29 21:11:54 -03:00
e732d05cd5 Fix: esclarecido que Top Resource Consumers mostra REQUESTS, não consumo real 2025-09-29 21:07:56 -03:00
d0eeeb2d1a Fix: corrigido erro JavaScript que impedia carregamento de dados do dashboard 2025-09-29 21:02:53 -03:00
79548ff3a6 Fix: removida redundância de métricas e adicionadas métricas específicas de saúde do cluster 2025-09-29 20:59:32 -03:00
b4190a9e97 MAJOR: corrigido valores hardcoded e implementado exibição inteligente de unidades (milicores/MiB) 2025-09-29 20:15:56 -03:00
c14a1e2674 Fix: corrigido conversão de capacidade de memória no JavaScript (já vem em GiB da API) 2025-09-29 20:06:01 -03:00
fefe65f586 CRITICAL FIX: corrigido cálculo de overcommit de memória (bytes/GiB) 2025-09-29 18:44:34 -03:00
dea241f8ca CRITICAL FIX: corrigido parsing de CPU que estava convertendo 100m para 100 cores 2025-09-29 18:16:13 -03:00
b56a9e6e14 Fix: corrigido QoS distribution no dashboard 2025-09-29 18:12:58 -03:00
379ce69b66 Fix: corrigido JavaScript do dashboard para exibir dados do cluster-health 2025-09-29 18:11:01 -03:00
bd3ab16f5d Fix: corrigido acesso a atributos de ContainerResource como objeto 2025-09-29 18:07:46 -03:00
2237e15534 Fix: corrigido tratamento de ContainerResource como objeto Pydantic 2025-09-29 18:05:57 -03:00
9fba4bbe4e Fix: corrigido calculo de recursos dos pods no dashboard 2025-09-29 18:03:23 -03:00
952ca042a2 Fix: adicionado import Optional faltante 2025-09-29 17:55:53 -03:00
525c1b28a0 Fix: adicionado metodo _validate_qos_class faltante 2025-09-29 17:55:37 -03:00
cdf13b4e2b Fix: adicionado metodo _determine_qos_class faltante 2025-09-29 17:53:58 -03:00
19686e7866 Fix: adicionado CORS e corrigido endpoint cluster-health 2025-09-29 17:50:20 -03:00