# PMM Query Analytics doesn't work with mongodb

**URL:** https://forums.percona.com/t/pmm-query-analytics-doesnt-work-with-mongodb/7089
**Category:** Percona Server for MongoDB
**Created:** [July 2, 2019, 1:51am UTC](https://forums.percona.com/t/pmm-query-analytics-doesnt-work-with-mongodb/7089 "2019-07-02T01:51:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![rpedrero](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rpedrero](https://forums.percona.com/u/rpedrero)
#### Post date: [July 2, 2019, 1:51am UTC](https://forums.percona.com/t/pmm-query-analytics-doesnt-work-with-mongodb/7089/1 "2019-07-02T01:51:34Z")

</div>

Hello,

I’m running percona mongodb server in a docker with the following config in  
docker-compose.yml:

```auto
mongo:
image: percona/percona-server-mongodb
command: --dbpath=/data/db -profile=2 -slowms=200 -rateLimit=100
restart: always
ports:
- "27017:27017"

```

The info from the DDBB about the Profiling is:

```auto
db.getProfilingStatus()
{
"was" : 2,
"slowms" : 200,
"ratelimit" : 100,
"sampleRate" : 1.0
}

```

Also, I created the user with permissions:

```auto
[
{
"_id" : "admin.admin",
"userId" : UUID("be9ad6ca-d3f2-4901-a7ae-d63b1bfedbbc"),
"user" : "admin",
"db" : "admin",
"roles" : [
{
"role" : "root",
"db" : "admin"
}
],
"mechanisms" : [
"SCRAM-SHA-1",
"SCRAM-SHA-256"
]
},
{
"_id" : "admin.mongodb_exporter",
"userId" : UUID("64fb0978-1a56-4b6d-a4df-57ec66e0a422"),
"user" : "mongodb_exporter",
"db" : "admin",
"roles" : [
{
"role" : "clusterMonitor",
"db" : "admin"
},
{
"role" : "read",
"db" : "MyDb1"
},
{
"role" : "read",
"db" : "Mydb2"
},
{
"role" : "read",
"db" : "local"
},
{
"role" : "read",
"db" : "admin"
}
],
"mechanisms" : [
"SCRAM-SHA-1",
"SCRAM-SHA-256"
]
}
]

```

But PMM is not working, that is the message:

Can anyone help me, please?

Many thanks!

---

<div class="post-metadata">

### Author: ![rpedrero](https://avatars.discourse-cdn.com/v4/letter/r/57b2e6/32.png) [@rpedrero](https://forums.percona.com/u/rpedrero)
#### Post date: [July 17, 2019, 2:52am UTC](https://forums.percona.com/t/pmm-query-analytics-doesnt-work-with-mongodb/7089/2 "2019-07-17T02:52:42Z")

</div>

Can anyone help me, please?

Many thanks!
