# Mongo exporter not working after upgrading major version to 8 on sharded setup

**URL:** <https://forums.percona.com/t/mongo-exporter-not-working-after-upgrading-major-version-to-8-on-sharded-setup/40803>\
**Category:** PMM 2.x\
**Created:** [May 15, 2026, 10:12pm UTC](https://forums.percona.com/t/mongo-exporter-not-working-after-upgrading-major-version-to-8-on-sharded-setup/40803 "2026-05-15T22:12:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkamath](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@rkamath](https://forums.percona.com/u/rkamath)\
**Post date:** [May 15, 2026, 10:12pm UTC](https://forums.percona.com/t/mongo-exporter-not-working-after-upgrading-major-version-to-8-on-sharded-setup/40803/1 "2026-05-15T22:12:42Z")

</div>

## Description:

After upgrading from mongo 7 to mongo 8.0.20 on a sharded mongo setup, mongo metrics do not show up correctly and errors are seen in the agent logs. Exporters are setup on the replica set ports themselves. Don’t see why it’s failing specifically on this setup/version. Have 8.0.17 on non sharded setups and they are able to work fine. Also tried 8.0.20 on a test setup and metrics posted fine for that as well.

## Version:

server and client are on 2.41.1

mongo is on percona mongo 8.0.20, centOS 8 build

## Logs:

May 15 16:04:00 pmm-agent[1238]: time=“2026-05-15T16:04:00.022-06:00” level=info msg=“Sending 94 buckets.” agentID=/agent\_id/158d05b4-f0f4-45af-bb0d-982a80aa99f5 component=agent-builtin type=qan\_mongodb\_profiler\_agent  
May 15 16:04:03 pmm-agent[1238]: time=“2026-05-15T16:04:03.479-06:00” level=error msg=“time=\“2026-05-15T16:04:03-06:00\” level=error msg=\“cannot retrieve engine type: Engine is unavailable\”” agentID=/agent\_id/417d1bc5-de25-4e75-9c0e-366203fbdc90 component=agent-process type=mongodb\_exporter  
May 15 16:04:08 pmm-agent[1238]: time=“2026-05-15T16:04:08.481-06:00” level=error msg=“time=\“2026-05-15T16:04:08-06:00\” level=error msg=\“cannot retrieve engine type: Engine is unavailable\”” agentID=/agent\_id/417d1bc5-de25-4e75-9c0e-366203fbdc90 component=agent-process type=mongodb\_exporter

## Expected Result:

Expect mongo metrics to show up correctly

## Actual Result:

 ![Screenshot 2026-05-15 at 6.08.56 PM](https://us1.discourse-cdn.com/flex019/uploads/percona1/original/3X/e/a/ea8ae4fd34f87259754466f78a75bbb2558aa1f7.png)

metrics do not show up correctly

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [May 18, 2026, 10:56am UTC](https://forums.percona.com/t/mongo-exporter-not-working-after-upgrading-major-version-to-8-on-sharded-setup/40803/2 "2026-05-18T10:56:02Z")

</div>

Hi, unfortunately PMM 2.41 does not support MongoDB 8. You will need to update to at least 2.44.0. Also PMM 2 is no longer supported so no bug fixes or security patches are released anymore. Please upgrade to PMM 3.x in order to fix this problem.
