Phase 1.2: Complete Historical Analysis Integration - Add insufficient data detection, seasonal patterns, and integrate in main dashboard
This commit is contained in:
@@ -44,11 +44,21 @@ async def get_cluster_status(
|
||||
pods = await k8s_client.get_all_pods()
|
||||
nodes_info = await k8s_client.get_nodes_info()
|
||||
|
||||
# Validate resources
|
||||
# Validate resources with historical analysis
|
||||
all_validations = []
|
||||
historical_service = HistoricalAnalysisService()
|
||||
|
||||
for pod in pods:
|
||||
# Static validations
|
||||
pod_validations = validation_service.validate_pod_resources(pod)
|
||||
all_validations.extend(pod_validations)
|
||||
|
||||
# Historical analysis (async)
|
||||
try:
|
||||
historical_validations = await validation_service.validate_pod_resources_with_historical_analysis(pod, "24h")
|
||||
all_validations.extend(historical_validations)
|
||||
except Exception as e:
|
||||
logger.warning(f"Error in historical analysis for pod {pod.name}: {e}")
|
||||
|
||||
# Get overcommit information
|
||||
overcommit_info = await prometheus_client.get_cluster_overcommit()
|
||||
|
||||
Reference in New Issue
Block a user