Problems after upgrading from 2.9.0 to 2.11.1

Hello

After upgrading my PMM and its pmm2-clients , i could not collect MongoDb infos coreectly. Can you help please what I missed?

P.S. un-updated agents are working fine with 2.11.1 ?

Here is pmm-agent service

here is pmm-admin list

Hi Ghan,

Could you check version of mongodb exporter?

/usr/local/percona/pmm2/exporters/mongodb_exporter --version

2 Likes

Here you are

mongodb_exporter - MongoDB Prometheus exporter

Version: 0.20.0

Commit: 4f042652395daade2292cbe91b5ae644f5c3a834

Build date: 2020-10-19T08:45:41+0000

2 Likes

Ok. It’s the latest version.

It looks like exporter can’t fetch all data from mongodb instances.

Please perform that next command on the node that has a mongod service with issues. But password string has to be replaced by the next one

Screenshot_20201130_130123.png

curl -s -u pmm:/agent_id/626e6acb-9046-40fe-b1a5-15b078b5a119 http://localhost:42001/metrics | grep mongodb_version_info

2 Likes

Empty responce

2 Likes

It’s a different node so listened port could be a different too.

Please check which port is used by exporter on this node

ps -auxww | grep mongodb_exporter

2 Likes

Hello

Sorry but I have exactly the same problem :frowning: Can we continue?

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 <a href="http://localhost:42001/metrics">http://localhost:42001/metrics</a> | 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:

netstat -alnp | grep LISTEN -w

....

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

...

 curl -s -u pmm:/agent_id/f2e8e21c-5ca0-4f9f-bd6f-4c92767ffc27 <a href="http://localhost:42002/metrics">http://localhost:42002/metrics</a> | 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 <a href="http://localhost:42001/metrics">http://localhost:42001/metrics</a> | 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
1 Like

Hi,

We are working on the issue. The progress can be tracked in the jira ticket

Until the issue has not fixed I may suggest to use the old version of exporter.

Here are commands for integrating exporter from pmm 2.10.0 into pmm 2.12.0

2 Likes

Hi @Ghan @aihnatov

I was testing this issue bug ref: https://jira.percona.com/browse/PMM-7116

My test cases listed in the bug report, following is the comment link.

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

Do you see this STARTUP status permanently for replica or for the specific time range? can change time range and test for 5 mins, 30 mins, 1 hour , 3 hours etc see if status change.

2 Likes

Thank you for your reply, but 2.10 has the same problem

root@a0059n1:~# /usr/local/percona/pmm2/exporters/mongodb_exporter --version

mongodb_exporter - MongoDB Prometheus exporter

Version: c31c7f7fd636ec18ad0fa4a78549fcdeee82cfdb

Commit: c31c7f7fd636ec18ad0fa4a78549fcdeee82cfdb

Build date: 2020-09-15T17:16:46+0000

root@a0059n1:~# systemctl restart pmm-agent

root@a0059n1:~# curl -s -u pmm:/agent_id/f2e8e21c-5ca0-4f9f-bd6f-4c92767ffc27 <a href="http://localhost:42002/metrics">http://localhost:42002/metrics</a> | grep mongodb_version

# HELP mongodb_version_info The server version

# TYPE mongodb_version_info gauge

mongodb_version_info{mongodb="server version is unavailable"} 
2 Likes

@lalit.choudhary yes, I tried with mentioned time frames but status was same. Problem still existed.

2 Likes

The problem still exist, any news about fixing?

2 Likes

@Cihan_Tunali
We verified this as a bug and PMM team will check this further.

2 Likes

The problem still exists in PMM 2.16…

1 Like

@aihnatov
[PMM-7116] Dashboards: Incorrect STARTUP state on MongoDB ReplSet Summary dashboard - Percona JIRA still open and not yet fixed. Please subscribe to the bug by adding yourself to the watcher list and you get updates for the bug progress

1 Like

Hello

At Get mongodb metrics error - #12 by Cihan_Tunali with @carlos.salguero help, I debugged his steps with Pmm 2.18 witvh Pmm2-client-2.18-0.

Here is mongodb_exporter version

I ran mongodb_exportore manually via

./mongodb_exporter --mongodb.uri=‘mongodb://user:pass@10.0.0.170:27017/admin’ --log.level=debug

Tested.

Still there is problem and it can not get correct data and PMM is not showing as well

https://jira.percona.com/browse/PMM-7116

Kindly require help, because of this, I can not update my PMM. Thanks!

1 Like

Hello,

Anybody help me?

1 Like

with @steve.hoffman help, I found that this problem fixed with v2.18. I tried to install v2.19 and I updated my agents to v.2.19. Problem still exist at this version as well.

I followed this article to setup agent but nothing changed at statuses. Can someone help please?

1 Like

It is clear that, exporter can not send replset values. But it can read status of nodes.

Kindly require your help.

1 Like

Hi, everyone

Instead of

"

Bugs Fixed

  • PMM-7116: Dashboards: Incorrect STARTUP state on MongoDB ReplSet Summary dashboard
    "
    the problem wasn’t solved in 2.25: we see the same behaviour after version’s upgrade from 2.9.1 to 2.25.
1 Like