3

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
  • 481
  • 2
  • 5
  • 11

1 Answers1

2

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
  • 8,613
  • 6
  • 28
  • 44