# PMM not picking MongoDB

**URL:** <https://forums.percona.com/t/pmm-not-picking-mongodb/6544>\
**Category:** PMM 1.x\
**Created:** [August 27, 2018, 6:50pm UTC](https://forums.percona.com/t/pmm-not-picking-mongodb/6544 "2018-08-27T18:50:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr.debater](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/mr.debater/32/1238_2.png) [@mr.debater](https://forums.percona.com/u/mr.debater)\
**Post date:** [August 27, 2018, 6:50pm UTC](https://forums.percona.com/t/pmm-not-picking-mongodb/6544/1 "2018-08-27T18:50:00Z")

</div>

Hello, I installed PMM Server from AWS Marketplace on a separate EC2 (PMM-EC2). I am trying to monitor mySQL and MongoDB that are installed on the same EC2 (DB-EC2). I installed PMM client on the DB-EC2 and ran the list command for which the output is below. In the Grafana dashboard the MySQL shows up but MongoDB does not. It shows ‘Monitered DB Instances’ as only 1 … it should be 2 including MongoDB and MySQL.

* * *

SERVICE TYPE NAME LOCAL PORT RUNNING DATA SOURCE OPTIONS

* * *

mongodb:queries ip-173.XXX.81.XXX - YES localhost:27017 query\_examples=true  
mysql:queries ip-173.XXX.81.XXX - YES root:_**@unix(/var/run/mysqld/mysqld.sock) query\_source=slowlog, query\_examples=true, s low\_log\_rotation=true, retain\_slow\_logs=1  
linux:metrics ip-173.XXX.81.XXX 42000 YES -  
mysql:metrics ip-173.XXX.81.XXX 42002 YES root:**_@unix(/var/run/mysqld/mysqld.sock)  
mongodb:metrics ip-173.XXX.81.XXX 42003 YES localhost:27017

* * *

PMM Network Status

Server Address | 13.232.233.21  
Client Address | 13.XXX.XXX.XXX (173.XXX.81.XXX)

- System Time  
NTP Server ([0.pool.ntp.org](http://0.pool.ntp.org)) | 2018-08-28 00:15:11 +0000 UTC  
PMM Server | 2018-08-28 00:15:09 +0000 GMT  
PMM Client | 2018-08-28 00:15:11 +0000 UTC  
PMM Server Time Drift | OK  
PMM Client Time Drift | OK  
PMM Client to PMM Server Time Drift | OK

- Connection: Client → Server

* * *

SERVER SERVICE STATUS

* * *

Consul API OK  
Prometheus API OK  
Query Analytics API OK

Connection duration | 1.092747ms  
Request duration | -177.204µs  
Full round trip | 915.543µs

- Connection: Client ← Server

* * *

SERVICE TYPE NAME REMOTE ENDPOINT STATUS HTTPS/TLS PASSWORD

* * *

linux:metrics ip-173.XXX.81.XXX 13.XXX.XXX.XXX–\>173.XXX.81.XXX:42000 OK YES YES  
mysql:metrics ip-173.XXX.81.XXX 13.XXX.XXX.XXX–\>173.XXX.81.XXX:42002 OK YES YES  
mongodb:metrics ip-173.XXX.81.XXX 13.XXX.XXX.XXX–\>173.XXX.81.XXX:42003 OK YES YES

---

<div class="post-metadata">

**Author:** ![lorraine.pocklington](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/lorraine.pocklington/32/37_2.png) [@lorraine.pocklington](https://forums.percona.com/u/lorraine.pocklington)\
**Post date:** [August 30, 2018, 3:57am UTC](https://forums.percona.com/t/pmm-not-picking-mongodb/6544/2 "2018-08-30T03:57:55Z")

</div>

Hello there, I’ve asked the team if they’ve any advice for you on this, just wondering if you could confirm the version of PMM you have installed?  
Did you try to set the connections to MySQL and MongoDB at the same time or has the MySQL one been running for a while?

I’ll pass you this link ‘just in case’ it helps, but I think that there might be some new tips and tricks for your environment … [url][https://www.percona.com/blog/2018/01/17/troubleshooting-percona-monitoring-and-management-pmm-metrics/[/url]](https://www.percona.com/blog/2018/01/17/troubleshooting-percona-monitoring-and-management-pmm-metrics/%5B/url%5D)

---

<div class="post-metadata">

**Author:** ![Michael\_Coburn](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/michael_coburn/32/18_2.png) [@Michael\_Coburn](https://forums.percona.com/u/Michael_Coburn)\
**Post date:** [August 30, 2018, 9:42am UTC](https://forums.percona.com/t/pmm-not-picking-mongodb/6544/3 "2018-08-30T09:42:19Z")

</div>

Hi [mr.debater](https://percona.vanillacommunities.com/profile/x/x/42283)  
Can you please share (from DB-EC2 client) the contents of

```auto
/var/log/pmm-mongodb-metrics*.log

```

Also can you share the commands you ran to set up the MongoDB instance? It will be the

```auto
pmm-admin add mongodb ...

```
