Disk Utilization stats per POD in K8

12/4/2017

I was looking for ways to get details on disk utilization (mainly writes and Delete's) on a per POD level. I did get google advice such as cAdvisor/heapster etc but none of them talk about disk usage profiling from POD perspective.

Any help on this is greatly appreciated.

TIA!

-- Rakshith Venkatesh
kubernetes

1 Answer

12/5/2017

Assuming the pods are running a linux variant you can do:

kubectl exec -it <pod> cat /proc/1/io

Returns info on the main process' IO defined here

You could then write a script to run the above command (or use the kuberentes API) for each pod of interest.

-- stacksonstacks
Source: StackOverflow