<p>POD consist: <code>my-app-container</code> and <code>envoy (istio-proxy)</code> container</p>
<p>I want to get <code>cpu_usage</code> of <code>envoy-container</code> from <code>may-app-container</code>.</p>
<p>Info from: <code>http://localhost:1500/stats</code> and <code>http://localhost:1500/stats/prometheus</code> doesn't contain <code>CPU_usage</code>.</p>
<p>Thanks</p>

srg321
<p>Below are 2 ways I could find to get the information about istio-proxy cpu usage.</p>
<hr />
<p>You can use <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#top" rel="nofollow noreferrer">kubectl top</a>.</p>
<pre><code>kubectl top pods -A --containers | grep istio-proxy | grep Mi
default        details-v1-66b6955995-g98g6                                 istio-proxy                 3m           42Mi
default        productpage-v1-5d9b4c9849-v4pwv                             istio-proxy                 3m           40Mi
default        ratings-v1-fd78f799f-qcpwn                                  istio-proxy                 3m           38Mi
default        reviews-v1-6549ddccc5-hg4sw                                 istio-proxy                 4m           64Mi
default        reviews-v2-76c4865449-kzknx                                 istio-proxy                 4m           55Mi
default        reviews-v3-6b554c875-7txzl                                  istio-proxy                 3m           53Mi
istio-system   istio-ingressgateway-5656d66f9f-2f25t                       istio-proxy                 3m           36Mi
</code></pre>
<hr />
<p>You can also follow the Istio <a href="https://github.com/istio/istio/wiki/Analyzing-Istio-Performance" rel="nofollow noreferrer">Wiki</a> to analyze Istio performance, including the <a href="https://github.com/istio/istio/wiki/Analyzing-Istio-Performance#cpu" rel="nofollow noreferrer">cpu</a>.</p>
