patterndockerMinor
Measuring image pull latency in k8s cluster
Viewed 0 times
imagepullk8smeasuringlatencycluster
Problem
I maintain a Kubernetes clusters that pulls a number of images (mostly from Docker Hub, but also some from GCR and GHCR). I am interested in building a dashboard to measure the amount of time it takes for these images to be pulled (to determine how much this is contributing to pod start latencies). Is anyone aware of means to measure this latency using Prometheus / specific exporters?
Solution
For Kubernetes >=1.30
Kubelet now exports a histogram,
Kubelet now exports a histogram,
image_pull_duration_seconds, for exactly this case. See kubernetes/kubernetes#121719 for details.Context
StackExchange DevOps Q#17758, answer score: 2
Revisions (0)
No revisions yet.