<p>I have multiple kubernetes clusters, whose versions are 1.13, 1.16, 1.19.</p>
<p>I'm trying to monitor the total number of threads so that I need the metric &quot;container_threads&quot;.</p>
<p>But for the cluster version equal or lower than 1.16, the container_threads metric looks like somewhat wrong.</p>
<p>For 1.16, the metric values is always 0, for 1.13 no container_threads metrics exists.</p>
<p>I know that the metric is from cadvisor which is included in kubelet.</p>
<p>I want to make sure that from which version, the cadvisor doesn't have container_threads.</p>
<p>I know how to check kubelet version &quot;kubelet --version&quot;.</p>
<p>But I don't know how to find the version of cadvisor.</p>
<p>Does anyone know about it?</p>
<p>Thanks!</p>

JAESANGPARK
<p>There is no specific command to find the version of <a href="https://github.com/google/cadvisor/releases" rel="nofollow noreferrer">cAdvisor</a>. However, metrics can be accessed using commands like $ kubectl top</p>
<p>For Latest Version Of Cadvisor , We will use the official cAdvisor docker image from google hosted on the <a href="https://hub.docker.com/r/google/cadvisor/" rel="nofollow noreferrer">Docker Hub</a>.</p>
<p>For more information about <a href="https://www.rancher.cn/blog/2019/native-kubernetes-monitoring-tools-part-1" rel="nofollow noreferrer">cAdvisor UI</a> Overview and Processes, over to the cAdvisor section. Also, cAdvisor’s UI has been marked deprecated as of Kubernetes version 1.10 and the interface is scheduled to be completely removed in version 1.12.</p>
<p>If you run Kubernetes version 1.12 or later, the UI has been removed. However, the metrics are still there since cAdvisor is part of the kubelet binary.</p>
<p>The kubelet binary exposes all its runtime metrics and all the <a href="http://localhost:8001/api/v1/nodes/gke-c-plnf4-default-pool-5eb56043-23p5/proxy/metrics/cadvisor" rel="nofollow noreferrer">cAdvisor metrics at the /metrics endpoint</a> using the Prometheus exposition format.</p>
<p><strong>Note:</strong> cAdvisor doesn’t store metrics for long-term use, so if you want that functionality, you’ll need to look for a dedicated monitoring tool.</p>
