<p><strong>For Kubernetes &gt;=1.30</strong></p>
<p>Kubelet now exports a histogram, <code>image_pull_duration_seconds</code>, for exactly this case. See <a href="https://github.com/kubernetes/kubernetes/pull/121719" rel="nofollow noreferrer">kubernetes/kubernetes#121719</a> for details.</p>

CC BY-SA 4.0
2024-03-27T13:31:14.660Z
2024-03-31T05:10:28.537Z
2024-03-31T05:10:28.537Z
Eladik
<p>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?</p>

<docker><kubernetes><prometheus>
Measuring image pull latency in k8s cluster
Derek Brown
# Measuring image pull latency in k8s cluster

(Asked by: username_0 on 2023-04-28)

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?

**Tags:** docker, kubernetes, prometheus


---

## 1 answers

### Answer by username_1 on 2024-03-27. Score: 2 | Accepted answer

**For Kubernetes >=1.30**

Kubelet now exports a histogram, `image_pull_duration_seconds`, for exactly this case. See [kubernetes/kubernetes#121719](https://github.com/kubernetes/kubernetes/pull/121719) for details.


---

