Command

Kubernetes Show Pod Metrics Command

The Kubernetes command to show pod metrics is kubectl top pod.

Quick Answer

Command
kubectl top pod
KubernetesCommand

Show Pod Metrics

Type this command
kubectl top pod

Shows CPU and memory metrics for all pods in the namespace.

Tip: Requires the metrics server to be installed in the cluster.

Learn More

How to show pod metrics in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl top pod, replace any placeholders, and run it.

Tip: Requires the metrics server to be installed in the cluster.

Kubernetes Show Pod Metrics Command

Run kubectl top pod.

Related Commands

Frequently asked questions

What is the Kubernetes command to show pod metrics?

Run kubectl top pod.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify