Metrics

Live CPU and memory columns for pods and workloads, plus optional Prometheus-backed inspector charts.

Overview

Krust has two metrics paths. Table columns use the Kubernetes metrics-server API for lightweight current CPU and memory values. Pod, Deployment, and StatefulSet inspector charts can connect to Prometheus for recent CPU and memory time-series.

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

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.

Node and Cluster Metrics

The Nodes table shows CPU and memory usage both as absolute values and as a percentage of each node's capacity. The Cluster Overview shows CPU and memory as capacity grids with Used, Requested, and Available, as a share of the cluster's allocatable capacity; completed and failed Pods do not count toward Requested.

Polling

Metrics are polled on a 30-second interval and refresh automatically in the background. Use Refresh Metrics in the toolbar to update them immediately. After repeated failures, Krust polls less often (up to every 5 minutes) until metrics return.

The table goal is situational awareness, not high-frequency time-series monitoring. For a selected Pod, Deployment, or StatefulSet, Krust can query Prometheus and render lightweight CPU/memory charts in the inspector.

Prometheus Inspector Charts

Prometheus is optional. When configured, Krust queries Prometheus through the Kubernetes API Service proxy. Configure the Prometheus namespace, Service name, Service port or port name, and scheme in Settings → Observability. Use the Profile picker to keep a default profile plus a separate profile for each cluster; inspectors use the profile saved for their resource's cluster.

This avoids opening Grafana, starting a manual port-forward, or exposing Prometheus outside the cluster. The active kubeconfig user still needs permission to access services/proxy in the Prometheus namespace.

When Prometheus is not configured, the Pod inspector shows a compact configuration prompt and the Deployment and StatefulSet inspectors leave the chart out. When verification fails, the inspector shows a human-readable error instead of blocking the resource view.

Evidence-First Investigation

  1. Use metrics-server columns to find the Pod or workload that differs from its peers.
  2. Compare usage with requests, limits, readiness, and restart count.
  3. Open the selected Pod's Prometheus trend to determine when the change started.
  4. Correlate the trend with rollout timing, Events, current logs, and previous logs.
  5. Choose an action only after the metrics and resource evidence agree.

Read Kubernetes Pod Metrics: Use Prometheus Before You Restart for the complete CPU and memory troubleshooting workflow.

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