<p>Memory and cpu resources of a container can be tracked using prometheus. But can we track I/O of a container? Are there any metrices available?</p>

Manish Khandelwal
<p>If you are using Docker containers you can check the data with the <code>docker stats</code> command (as <a href="https://stackoverflow.com/users/6309601/p">P...</a> mentioned in the comment). <a href="https://docs.docker.com/engine/reference/commandline/stats/#extended-description" rel="nofollow noreferrer">Here</a> you can find more information about this command.</p>
<blockquote>
<p>If you want to check pods cpu/memory usage without installing any third party tool then you can get memory and cpu usage of pod from cgroup.</p>
<ol>
<li>Go to pod's exec mode  <code>kubectl exec pod_name -- /bin/bash</code></li>
<li>Go to  <code>cd /sys/fs/cgroup/cpu</code>  for cpu usage run  <code>cat cpuacct.usage</code></li>
<li>Go to  <code>cd /sys/fs/cgroup/memory</code>  for memory usage run  <code>cat memory.usage_in_bytes</code></li>
</ol>
</blockquote>
<p>For more look at this <a href="https://stackoverflow.com/questions/54531646/checking-kubernetes-pod-cpu-and-memory">similar question</a>.
<a href="https://stackoverflow.com/questions/51641310/kubernetes-top-vs-linux-top/51656039#51656039">Here</a> you can find another interesting question. You should know, that</p>
<blockquote>
<p>Containers inside pods partially share <code>/proc</code>with the host system include path about a memory and CPU information.</p>
</blockquote>
<p>See also this article about <a href="https://fabiokung.com/2014/03/13/memory-inside-linux-containers/" rel="nofollow noreferrer">Memory inside Linux containers</a>.</p>
