How to get a pod's disk I/O read write in bytes in prometheus

10/17/2019

i was using Prometheus for monitoring kubernetes cluster. i want to know what is the disk read/write for each pod.

how can i achieve this

-- user8177026
kubernetes
kubernetes-pod
minikube
prometheus

1 Answer

10/17/2019

I recommend you if you are using nginx ingress you can configure it with:

enable-vts-status: "true"

This will give you a bunch of prometheus metrics for each pod that has on ingress. The metric names start with nginx_upstream_

In case it is the cronjob creating the spikes, install node-exporter daemonset and check the metrics container_fs_

-- MaggieO
Source: StackOverflow