MongoDB collections are not displaying on the dashboards

Hi there!
MongoDB Collections Overview dashboards are not displaying some data.
mongodb_collstats_storageStats_count metric has data.

client version pmm2-client.x86_64 2.43.0-6.el9 @pmm2-client-release-x86_64
server image from docker.io/percona/pmm-server:2.43

pmm-admin registered with --enable-all-collectors option

started display Datasize dashboard only

The below dashboards are not displaying any data, even after updating the query in the explore section
from
count(mongodb_top_commands_time{database=~"()",service_name=~"()"})
to
count(mongodb_top_commands_time{database=~".*",service_name=~".*"})

But there is another problem: no nodes or databases are displayed on Collection dashboard, even though the replica set shows the named replicas.

Other dashboards, such as MongoDB Instances Overview and MongoDB Oplog Details, work correctly

Hi @eliteaz
Welcome to the community!
We have reviewed the expression, Collection dashboard as well, and it’s working without any issues.
We recommend to check whether your pmm-client on db nodes are running with replica set option. However, as you have specified, you can see the replica set in the replicas.

Also, reviewed your expression and it’s show correct result.


We don’t see any issue over here. Would like to know, if any error in pmm-agent logs you can see?

Thanks,
Mukesh

1 Like

thanks @Mukesh_Kumar for Your recommendation !!!
after registering with the option --replication-set={{ replication_name }}
it began showing all graphs correctly

MongoDB Node: hostnames and Database: names also appeared in the selection menu above the graphs.

1 Like