如何从 POD 中的另一个容器获取 CPU Envoy(istio-proxy)容器的使用情况
How to get CPU usage of Envoy (istio-proxy) container from another container in the POD
POD 包含:my-app-container
和 envoy (istio-proxy)
容器
我想从 may-app-container
中获得 cpu_usage
的 envoy-container
。
信息来自:http://localhost:1500/stats
和 http://localhost:1500/stats/prometheus
不包含 CPU_usage
。
谢谢
以下是我可以找到的 2 种获取有关 istio-proxy cpu 用法信息的方法。
您可以使用 kubectl top.
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
你也可以关注 Istio Wiki to analyze Istio performance, including the cpu.
POD 包含:my-app-container
和 envoy (istio-proxy)
容器
我想从 may-app-container
中获得 cpu_usage
的 envoy-container
。
信息来自:http://localhost:1500/stats
和 http://localhost:1500/stats/prometheus
不包含 CPU_usage
。
谢谢
以下是我可以找到的 2 种获取有关 istio-proxy cpu 用法信息的方法。
您可以使用 kubectl top.
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
你也可以关注 Istio Wiki to analyze Istio performance, including the cpu.