Rakshith Venkatesh
Rakshith Venkatesh

Reputation: 561

Disk Utilization stats per POD in K8

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!

Upvotes: 3

Views: 5611

Answers (1)

stacksonstacks
stacksonstacks

Reputation: 9331

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.

Upvotes: 2

Related Questions