# PMM2 MongoDB exporter: context deadline exceeded

**URL:** <https://forums.percona.com/t/pmm2-mongodb-exporter-context-deadline-exceeded/8052>\
**Category:** PMM 2.x\
**Created:** [September 17, 2020, 8:11pm UTC](https://forums.percona.com/t/pmm2-mongodb-exporter-context-deadline-exceeded/8052 "2020-09-17T20:11:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![logwriter](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/logwriter/32/1390_2.png) [@logwriter](https://forums.percona.com/u/logwriter)\
**Post date:** [September 17, 2020, 8:11pm UTC](https://forums.percona.com/t/pmm2-mongodb-exporter-context-deadline-exceeded/8052/1 "2020-09-17T20:11:57Z")

</div>

Hi all,

I’m trying to collect some stats from MongoDB using PMM2, but according to /targets I’m getting a “context deadline exceeded” and the state of my endpoint is also reported as DOWN.

Let me provide some more info:

[root@prod-vm-mongodb-01 ~]# pmm-admin list

Service type Service name Address and port Service ID

MongoDB prod-vm-mongodb-01 10.142.111.111:27017 /service\_id/cce24e09-fbc0-43a0-a595-9fe3afa5ee83

Agent type Status Agent ID Service ID

pmm\_agent Connected /agent\_id/3f24ffd9-842e-449d-b333-e59ada7cc706

node\_exporter Running /agent\_id/f2402bf6-edbf-41e6-8924-611e8598605d

mongodb\_exporter Running /agent\_id/45002916-3d96-4d8c-b1e5-ee3beaa2aec9 /service\_id/cce24e09-fbc0-43a0-a595-9fe3afa5ee83

mongodb\_profiler\_agent Running /agent\_id/bba86d44-b654-411d-b7af-ee630cd9259e /service\_id/cce24e09-fbc0-43a0-a595-9fe3afa5ee83

[root@prod-vm-mongodb-01 ~]#

I’m able to connect to the mongodb\_exporter locally from the client:

[root@prod-vm-mongodb-01 ~]# wget [http://10.142.111.111:42002/metrics](http://10.142.0.60:42002/metrics) --no-check-certificate

–2020-09-18 01:38:33-- [http://10.142.111.111:42002/metrics](http://10.142.0.60:42002/metrics)

Connecting to 10.142.111.111:42002… connected.

HTTP request sent, awaiting response… 401 Unauthorized

Authorization failed.

[root@prod-vm-mongodb-01 ~]#

I’m also able to connect from the server:

# wget [http://10.142.111.111:42002/metrics](http://10.142.0.60:42002/metrics) --no-check-certificate

–2020-09-18 01:30:57-- [http://10.142.111.111:42002/metrics](http://10.142.0.60:42002/metrics)

Connecting to 10.142.0.60:42002… connected.

HTTP request sent, awaiting response… 401 Unauthorized

Thoughts?

All the best,

– L

---

<div class="post-metadata">

**Author:** ![Vadim\_Yalovets](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/vadim_yalovets/32/43_2.png) [@Vadim\_Yalovets](https://forums.percona.com/u/Vadim_Yalovets)\
**Post date:** [September 29, 2020, 1:38pm UTC](https://forums.percona.com/t/pmm2-mongodb-exporter-context-deadline-exceeded/8052/2 "2020-09-29T13:38:04Z")

</div>

Hi,

Could you confirm that it’s possible connect to exporter from PMM server?

It looks strange that request to 10.142.111.111 was connected to 10.142.0.60

![Screenshot_20200929_215935.png](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/1X/cef1f7a5358845c9360786c05131c554460a4cf7.png)
