resource_pressure_analysis
Analyze container CPU and memory pressure against limits. Identify containers near or over thresholds and get recommendations to raise limits or scale out.
Instructions
[READ] Rank containers by CPU/memory pressure vs their limits + recommend.
Pulls a one-shot CPU%/mem% sample for each running container (or uses injected 'samples'), flags each 'near' (>= 80% of a threshold) or 'over' (>= threshold), and attaches a recommendation (raise a limit, set a missing memory limit, scale out). Ranks worst-first by the higher of CPU%/mem%. Every row carries its numbers.
Args: cpu_threshold: CPU% at/above which a container is over pressure (default 80). mem_threshold: Memory% at/above which a container is over pressure (default 80). samples: Injected rows {id, name, cpuPercent, memPercent, memUsageBytes, memLimitBytes}; skips live collection. target: Target name from config; omit for the default.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | ||
| samples | No | ||
| cpu_threshold | No | ||
| mem_threshold | No |