<p>I have some pods running a server:</p>
<pre><code>NAME                            READY   STATUS    RESTARTS   AGE
hello-python-6c7b478cf5-hxfvb   1/1     Running   0          7m16s
hello-python-6c7b478cf5-rczp9   1/1     Running   0          7m16s
hello-python-6c7b478cf5-snww5   1/1     Running   0          7m16s
hello-python-6c7b478cf5-wr8gf   1/1     Running   0          7m16s
</code></pre>
<p>I would like to get some &quot;stats&quot; for a given pod. For example, what percentage of requests has a given pod been handling.</p>
<p>How do I do this with <code>kubectl</code>?</p>

nz_21
<p>What you can do is running <code>kubectl describe pod &lt;pod_name&gt; -n &lt;namespace_name&gt;</code>, but this won't you give the percentage of requests that have been handled through this pod (that should be divided quite evenly among the pods to be honest).</p>
<p>For more detailed stats, you can use something like <code>metrics-server</code> or <code>prometheus</code>. See some more information about monitoring Kubernetes resources in the <a href="https://kubernetes.io/docs/tasks/debug-application-cluster/resource-usage-monitoring/" rel="nofollow noreferrer">documentation</a>.</p>
