# MongoDB 7.0.5 no metrics in dashboard

**URL:** <https://forums.percona.com/t/mongodb-7-0-5-no-metrics-in-dashboard/28685>\
**Category:** PMM 2.x\
**Created:** [February 23, 2024, 8:07pm UTC](https://forums.percona.com/t/mongodb-7-0-5-no-metrics-in-dashboard/28685 "2024-02-23T20:07:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jimmy\_Chen](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jimmy_chen/32/15189_2.png) [@Jimmy\_Chen](https://forums.percona.com/u/Jimmy_Chen)\
**Post date:** [February 23, 2024, 8:07pm UTC](https://forums.percona.com/t/mongodb-7-0-5-no-metrics-in-dashboard/28685/1 "2024-02-23T20:07:23Z")

</div>

I’m attempting to configure PMM to monitor some existing MongoDB 7.0.5 replica set instances, however I’m not having any luck getting the metrics to show up in the dashboards. I have installed the latest PMM 2.41.1, the latest pmm2-client 2.41.1, followed this page [MongoDB - Percona Monitoring and Management](https://docs.percona.com/percona-monitoring-and-management/setting-up/client/mongodb.html) to configure the `pmm` user with the correct roles/permissions, as well as enabled profiling on the MongoDB instances, lastly configured the service in PMM to connect to the MongoDB instance. This is what the dashboards look like. What am I still missing?

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/c/c64b2a21249c2fd4a5ebbd9d59bc4b615c4b79b6.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/6/6a6ba9183cad86c93883633d9b8bdff5b5af81af.png)  
 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/2X/9/9b59c0450c5657caea376620392c0e234a42e007.png)

---

<div class="post-metadata">

**Author:** ![Jimmy\_Chen](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jimmy_chen/32/15189_2.png) [@Jimmy\_Chen](https://forums.percona.com/u/Jimmy_Chen)\
**Post date:** [February 23, 2024, 9:52pm UTC](https://forums.percona.com/t/mongodb-7-0-5-no-metrics-in-dashboard/28685/2 "2024-02-23T21:52:11Z")

</div>

The pmm-agent appears to be erroring with the following

```auto
Feb 23 13:49:08 test-mongodb1.example.com pmm-agent[1847353]: time="2024-02-23T13:49:08.091-08:00" level=error msg="time=\"2024-02-23T13:49:08-08:00\" level=error msg=\"cannot retrieve engine type: Engine is unavailable\"" agentID=/agent_id/4595eda5-8430-4385-937b-a1e31276a287 component=agent-process type=mongodb_exporter
Feb 23 13:49:13 test-mongodb1.example.com pmm-agent[1847353]: time="2024-02-23T13:49:13.092-08:00" level=error msg="time=\"2024-02-23T13:49:13-08:00\" level=error msg=\"cannot retrieve engine type: Engine is unavailable\"" agentID=/agent_id/4595eda5-8430-4385-937b-a1e31276a287 component=agent-process type=mongodb_exporter
Feb 23 13:49:18 test-mongodb1.example.com pmm-agent[1847353]: time="2024-02-23T13:49:18.093-08:00" level=error msg="time=\"2024-02-23T13:49:18-08:00\" level=error msg=\"cannot retrieve engine type: Engine is unavailable\"" agentID=/agent_id/4595eda5-8430-4385-937b-a1e31276a287 component=agent-process type=mongodb_exporter
Feb 23 13:49:23 test-mongodb1.example.com pmm-agent[1847353]: time="2024-02-23T13:49:23.092-08:00" level=error msg="time=\"2024-02-23T13:49:23-08:00\" level=error msg=\"cannot retrieve engine type: Engine is unavailable\"" agentID=/agent_id/4595eda5-8430-4385-937b-a1e31276a287 component=agent-process type=mongodb_exporter

```

I found this JIRA ticket [[PMM-12350] - Percona JIRA](https://perconadev.atlassian.net/browse/PMM-12350), which claims it was fixed in 2.41.1, but this seems to be still happening.

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [February 26, 2024, 8:49am UTC](https://forums.percona.com/t/mongodb-7-0-5-no-metrics-in-dashboard/28685/3 "2024-02-26T08:49:42Z")

</div>

Hi @Jimmy_Chen, which mongodb instances were added? Do you see any other error in the log? Which mongodb instances have you added to PMM(mongos, mongod, arbiter)?

---

<div class="post-metadata">

**Author:** ![Jimmy\_Chen](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jimmy_chen/32/15189_2.png) [@Jimmy\_Chen](https://forums.percona.com/u/Jimmy_Chen)\
**Post date:** [February 26, 2024, 8:55am UTC](https://forums.percona.com/t/mongodb-7-0-5-no-metrics-in-dashboard/28685/4 "2024-02-26T08:55:16Z")

</div>

It’s a 3 node replica set. 2 data nodes and one arbiter. It doesn’t make any difference which node I added. It’s the same error on the data nodes. I’ve added all 3 so far.

---

<div class="post-metadata">

**Author:** ![Jimmy\_Chen](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/jimmy_chen/32/15189_2.png) [@Jimmy\_Chen](https://forums.percona.com/u/Jimmy_Chen)\
**Post date:** [May 9, 2024, 8:02am UTC](https://forums.percona.com/t/mongodb-7-0-5-no-metrics-in-dashboard/28685/5 "2024-05-09T08:02:00Z")

</div>

@nurlan can you assist? I did quite a bit more testing, and I also switched to using Percona Server MongoDB but the result is the same. It seems like the moment I create the replicaset, the metrics from mongodb\_exporter breaks. If it’s just a standalone node, then all the metrics show up in the dashboard.

For example, this is a standalone node

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/3/d/3db05d19dfebcbd2ca93d0040ab9ae5738f6ec67.png)

This is a single node but with replicaset created

 ![image](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/7/2/7247dbbb43d74a1f7abc4ac3cfa7383adc83ba03.png)
