No MongoDB metrics after upgrade from 2.9.1

Hello

I have exactly the same problem as https://forums.percona.com/discussion/56527 but I can’t reply there :frowning:

pmm-admin 2.9.1:

netstat -alnp | grep LISTEN -w

tcp6 0 0 :::42001 :::* LISTEN 7427/mongodb_export

curl -s -u pmm:/agent_id/f2e8e21c-5ca0-4f9f-bd6f-4c92767ffc27 http://localhost:42001/metrics | grep mongodb_version

HELP mongodb_version_info Software version information for mongodb process.

TYPE mongodb_version_info gauge

mongodb_version_info{mongodb=“3.6.21-10.0”} 1

The same server after upgrade to pmm-admin 2.12.0 (mongodb_exporter’s port was changed to 42002):

netstat -alnp | grep LISTEN -w

tcp6 0 0 :::42002 :::* LISTEN 7025/mongodb_export

curl -s -u pmm:/agent_id/f2e8e21c-5ca0-4f9f-bd6f-4c92767ffc27 http://localhost:42002/metrics | grep mongodb_version

HELP mongodb_version_info The server version

TYPE mongodb_version_info gauge

mongodb_version_info{mongodb=“server version is unavailable”} 1

The same server after downgrade back to 2.9.1:

curl -s -u pmm:/agent_id/f2e8e21c-5ca0-4f9f-bd6f-4c92767ffc27 http://localhost:42001/metrics | grep mongodb_version

HELP mongodb_version_info Software version information for mongodb process.

TYPE mongodb_version_info gauge

mongodb_version_info{mongodb=“3.6.21-10.0”} 1

What’s wrong with it? Thank you

Hi Andrii,

Thank you for your ticket refer the issue.

Until the issue has not fixed please consider using the old version of exporter.

Check for more updates and possible issues.

https://jira.percona.com/browse/PMM-7116?focusedCommentId=275031&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-275031

The problem still exists in PMM 2.16