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:
metrics do not show up correctly
