ReplSet Summary MongoDB dashboard using incorrect formulas

Description

The current metricsQL for the bottom two graphs on the MongoDB ReplSet Summary dashboard are always showing “no data”. This is because matches on templated variables are using incorrect syntax.

For example:

The fix is easy, just add ~ after =:

This should be done for all queries in these panels. I’m attaching two screenshots showing before and after fix. I’ll work on it and send a PR.

 

 

How to test

FB -
Check the mentioned panels for the service names which has dots in the name and which does not have dots in the name. The panels should show the data for both the cases.

How to document

None

AFFECTED CS IDs

CS0050532

Attachments

2

split from

Smart Checklist

Activity

Show:

Yash Sartanpara January 6, 2025 at 5:46 AM

Hi i have also faced this, sometimes, it is reproducible with certain Names hence it was already mentioned in the

Nurlan Moldomurov December 13, 2024 at 1:14 PM

I checked on PMM Demo and these graphs exist there .
can you check if it’s reproducable if service name contains . ?

Agustin Gallego December 11, 2024 at 10:38 PM
Edited

The service_name and node_name strings we used had dots. Not sure if this could be the difference between your tests and what we saw, but it’s worth to check.

Agustin Gallego December 11, 2024 at 8:25 PM

Hi ,

That is strange, I didn’t do anything fancy to reproduce. Just installed PMM and had a mongo instance reporting to it.

Michael Patrick December 11, 2024 at 4:50 PM

It appears this affects Disk I/O, Swap Activity, and Network Traffic under MongoDB ReplSet Summary in the client’s environment. Would those panels be included in the fix? I was on a call with Agustin where making the change to the formulas fixed the issue and the panels started populating so I have seen it work.

Done

Assignee

Yash Sartanpara

Reporter

Priority

Needs QA

Yes

Needs Doc

No

Planned Version/s

Fix versions

Story Points

Affects versions

Due date

Created November 28, 2024 at 12:26 AM
Updated January 31, 2025 at 2:47 PM
Resolved January 14, 2025 at 9:25 AM
Loading...