# Context dealine exceeded

**URL:** https://discuss.prometheus.io/t/context-dealine-exceeded/975
**Category:** Prometheus server
**Created:** [May 11, 2022, 12:04pm UTC](https://discuss.prometheus.io/t/context-dealine-exceeded/975 "2022-05-11T12:04:26Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![chelkala](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/chelkala/32/431_2.png) [@chelkala](https://discuss.prometheus.io/u/chelkala)
#### Post date: [May 11, 2022, 12:04pm UTC](https://discuss.prometheus.io/t/context-dealine-exceeded/975/1 "2022-05-11T12:04:26Z")

</div>

i am getting status is down and error like " **Get “[http://10.138.0.3:8091/actuator/prometheus](http://10.138.0.3:8091/actuator/prometheus)”: context deadline exceeded"**

 ![Screenshot from 2022-05-11 17-32-20](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/10c57164d388233a3e5cbe2860428ea8cdd19c7a.png)

---

<div class="post-metadata">

### Author: ![stuart](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/stuart/32/18_2.png) [@stuart](https://discuss.prometheus.io/u/stuart)
#### Post date: [May 11, 2022, 2:08pm UTC](https://discuss.prometheus.io/t/context-dealine-exceeded/975/2 "2022-05-11T14:08:40Z")

</div>

That means that the scrape didn’t complete before the timeout.

Usually it is due to some form of networking/firewall issue, but it can occasionally be due to an exporter taking a long time to respond.

The best thing to do is to use curl/wget from the same location as Prometheus (e.g. same VM or pod) to see if the request works. And then look at firewall logs, etc. to figure out the cause.

---

<div class="post-metadata">

### Author: ![chelkala](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/chelkala/32/431_2.png) [@chelkala](https://discuss.prometheus.io/u/chelkala)
#### Post date: [May 12, 2022, 3:59am UTC](https://discuss.prometheus.io/t/context-dealine-exceeded/975/3 "2022-05-12T03:59:53Z")

</div>

@stuart i am getting metrics through curl on VM and we have opened firewall …  
could u plzz tell me how can i get firewall logs …

---

<div class="post-metadata">

### Author: ![stuart](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/stuart/32/18_2.png) [@stuart](https://discuss.prometheus.io/u/stuart)
#### Post date: [May 12, 2022, 6:31am UTC](https://discuss.prometheus.io/t/context-dealine-exceeded/975/4 "2022-05-12T06:31:48Z")

</div>

Are you running curl with exactly the same URL that Prometheus is using, and from the same location?

When it being run how long is it taking to return data?

---

<div class="post-metadata">

### Author: ![chelkala](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/chelkala/32/431_2.png) [@chelkala](https://discuss.prometheus.io/u/chelkala)
#### Post date: [May 19, 2022, 10:48am UTC](https://discuss.prometheus.io/t/context-dealine-exceeded/975/5 "2022-05-19T10:48:46Z")

</div>

yes am using same URL and am running the curl from the Prometheus server and am getting metrics

---

<div class="post-metadata">

### Author: ![masterwishx](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/masterwishx/32/501_2.png) [@masterwishx](https://discuss.prometheus.io/u/masterwishx)
#### Post date: [August 17, 2022, 6:51pm UTC](https://discuss.prometheus.io/t/context-dealine-exceeded/975/6 "2022-08-17T18:51:42Z")

</div>

I have same issue in Prometheus but starnge , thing is only when Main PC is OFF.  
Having smb share from Main PC on Unraid Server .  
Fixed by increased scrape\_timeout: 15s from default .  
but why is scrape interval increase to 10s when Main PC is OFF?  
maybe trying to get info for smb share from Main PC?

---

<div class="post-metadata">

### Author: ![yeonfish6040](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/yeonfish6040/32/1059_2.png) [@yeonfish6040](https://discuss.prometheus.io/u/yeonfish6040)
#### Post date: [October 20, 2024, 11:06pm UTC](https://discuss.prometheus.io/t/context-dealine-exceeded/975/7 "2024-10-20T23:06:51Z")

</div>

YOU SAVED ME.

it was firewall issue
