<p>Lately I have problem with Pods in k8s. The k8s Node hang caused by too many tcp connections,But I don't know which container caused it.I want to know how to monitor the number of k8s pod's tcp connections,thanks</p>

<p>In <strong>kubernetes</strong> there is no such built-in metric. But you can find it in kubernetes addons, called Service Mesh like <a href="https://istio.io/latest/docs/concepts/what-is-istio/" rel="nofollow noreferrer">Istio</a> <em>Client/Server Telemetry Reporting</em> feature provides <code>istio_tcp_connections_opened_total</code> which can be exported to <strong>Prometheus</strong>.</p>
