resource_pressure_analysis
Rank running containers by CPU and memory pressure versus limits, identify near/over threshold cases, and recommend limit raises, missing memory limit fixes, or scale-out actions.
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 |