Metrics

Live CPU and memory columns for pods and workloads, backed by the Kubernetes metrics API.

Overview

Krust displays CPU and memory usage for pods and workloads by integrating with the Kubernetes metrics-server API.

Metrics are meant to answer quick operational questions: which pods are hot, whether a rollout changed resource usage, and whether a workload is close to its requested or limited capacity.

Pod Metrics

CPU and memory usage values are displayed directly in the pod list table columns. Values are fetched from the metrics.k8s.io API.

Because metrics live in the same table as status, restarts, age, and namespace, you can sort or filter without switching to a separate dashboard.

Workload Metrics

Aggregated CPU and memory metrics are available for workload resources:

Deployment metrics are resolved through ReplicaSet ownership chains.

That means a Deployment view can still show useful aggregate usage even though the raw metrics are reported at the pod level.

Polling

Metrics are polled on a 30-second interval and refresh automatically in the background.

The goal is table-level situational awareness, not high-frequency time-series monitoring. For detailed historical charts, keep using Prometheus or your observability stack.

Graceful Degradation

If metrics-server is not available in the cluster:

This keeps resource browsing usable in clusters where metrics-server is missing, restricted, or temporarily unavailable.

Troubleshooting

SymptomLikely causeWhat to check
All metric columns show -metrics-server is missing or unreachableCheck kubectl top pods in the same context
Some workloads show no aggregatePods are not currently reporting metricsInspect pod readiness and metrics-server scrape delay
Values lag briefly after rolloutMetrics API update intervalWait for the next 30-second refresh

Requirements