Module live_analyzer

Module live_analyzer 

Source
Expand description

Live cluster analyzer. Live Cluster Analyzer for Kubernetes resource optimization.

Combines metrics from the Kubernetes metrics-server (real-time) and Prometheus (historical) to provide data-driven right-sizing recommendations.

§Architecture

┌─────────────────────────────────────────────────────────────────────┐
│                        Live Analyzer                                │
│                                                                     │
│  ┌─────────────────┐    ┌──────────────────┐    ┌───────────────┐  │
│  │  MetricsClient  │    │ PrometheusClient │    │ Static Rules  │  │
│  │  (Real-time)    │    │ (Historical)     │    │ (Fallback)    │  │
│  └────────┬────────┘    └────────┬─────────┘    └───────┬───────┘  │
│           │                      │                      │          │
│           └──────────────────────┴──────────────────────┘          │
│                                  │                                  │
│                                  ▼                                  │
│                       ┌──────────────────┐                         │
│                       │  Recommendations │                         │
│                       │  (Data-Driven)   │                         │
│                       └──────────────────┘                         │
└─────────────────────────────────────────────────────────────────────┘

Structs§

AnalysisSummary
Summary of analysis results.
LiveAnalysisResult
Result of live cluster analysis.
LiveAnalyzer
Live cluster analyzer.
LiveAnalyzerConfig
Configuration for live analysis.
LiveRecommendation
A single recommendation from live analysis.

Enums§

DataSource
Data source for recommendations.
LiveAnalyzerError
Error type for live analysis operations.