Expand description
Deterministic analysis and insight engine.
Provides anomaly detection, pattern recognition, and diagnostic summaries for Docker containers based on metrics, events, and state snapshots. All analyses are fully deterministic — no AI/LLM calls are made.
Structs§
- Analysis
Thresholds - Configurable thresholds for anomaly detection.
- Anomaly
- A single detected anomaly or insight.
- Container
Explanation - Summary of a single container’s health signals.
- Signal
- A diagnostic signal extracted from telemetry data.
Enums§
- Analyze
Error - Errors that can occur during analysis.
- Severity
- Severity level for a detected anomaly.
- Signal
Status - Status classification for a signal.
Functions§
- analyze_
density - Analyze container density / distribution across images, states, and compose projects.
- analyze_
dependencies - Analyze container dependencies: which containers share networks, compose projects, and images.
- detect_
config_ drift - Detect configuration drift between historical snapshots.
- detect_
deployment_ errors - Detect deployment-related error spikes from historical events.
- detect_
high_ cpu - Detect high CPU usage anomalies.
- detect_
high_ disk_ io - Detect high disk I/O (read/write) above thresholds.
- detect_
high_ network_ io - Detect high network I/O (RX/TX) above thresholds.
- detect_
memory_ pressure - Detect memory pressure: containers with memory usage/limit ratio above threshold.
- detect_
resource_ leaks - Detect containers whose memory usage is trending upward over time, indicating a possible memory leak.
- detect_
restart_ loops - Detect restart loops: containers with
restart_count>= threshold. - detect_
unhealthy_ states - Detect containers in unhealthy states (exited, dead, restarting).
- execute_
analyze - Execute an analysis query using live Docker data + metrics. Thresholds are loaded from the user’s config file (if available), falling back to defaults.
- execute_
analyze_ with_ store - Execute an analysis query using historical data from a telemetry store. Thresholds are loaded from the user’s config file (if available), falling back to defaults.
- execute_
analyze_ with_ thresholds - Execute an analysis query with custom thresholds.