Files
krust/src
Erfan YousefiandClaude Opus 4.8 2c17eca7b5 feat(metrics): show per-pod right-sizing (usage vs request and limit)
The Pods CPU/MEM columns now show actual usage AND how it compares to the pod's
request and limit, so you can spot mis-sized pods at a glance:

  CPU/MEM cell = `<used> R<%req> L<%limit>`   e.g.  1.50c R150 L75
    R% = used / request  (low → over-provisioned, >=100 → under-requested)
    L% = used / limit    (risk: throttle/OOM as it approaches 100%)

Cells color by the worse signal: yellow at >=100% of request, red at >=90% of
limit. Missing request/limit render as R-/L-; no metrics renders as `-`. The
table title carries a one-line legend. Uses the request/limit already extracted
into the lean entity (1.1) plus the live pod metrics (4.2) — no new fetch.

Validation: fmt, check, test (87 passed / 4 ignored, +right-sizing render test),
release build all green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 01:22:31 +02:00
..