Hello,
I’m using latest version of PMM and MongoDB. I add 3 mongodb to pmm with :
pmm-admin add mongodb
–username=pmm
–password=mypass
–host=myhost1
–port=myport
–query-source=profiler
–environment=acc
–cluster=mycsname
–replication-set=myrsname
–authentication-database=admin
–enable-all-collectors
–tls-skip-verify
MGDB1
same for MGDB2 & MGDB3.
DB are well added to PMM as shown by a pmm-admin status.
2 questions :
- as soon as I add my mongodb, there are recurring errors in pmm-agent log :
pmm-agent[1045497]: time="2026-07-06T11:18:48.358+02:00" level=error msg="time=2026-07-06T11:18:48.358+02:00 level=ERROR source=v1_compatibility.go:816 msg="cannot retrieve engine type" component=diagnosticDataCollector collector=diagnostic_data error="Engine is unavailable\``ngithub.com/percona/mongodb_exporter/exporter.storageEngine\n\t/tmp/go/src/github.com/percona/mongodb_exporter/exporter/v1_compatibility.go:876\ngithub.com/percona/mongodb_exporter/exporter.specialMetrics\n\t/tmp/go/src/github.com/percona/mongodb_exporter/exporter/v1_compatibility.go:815\ngithub.com/percona/mongodb_exporter/exporter.(*diagnosticDataCollector).collect\n\t/tmp/go/src/github.com/percona/mongodb_exporter/exporter/diagnostic_data_collector.go:140\ngithub.com/percona/mongodb_exporter/exporter.(*baseCollector).Describe.func1\n\t/tmp/go/src/github.com/percona/mongodb_exporter/exporter/base_collector.go:63\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1771``"" agentID=d880ec71-54fd-4ae2-8a2f-59e5f65cd844 component=agent-process type=mongodb_exporter
What is wrong here?
- When I go to see dashboards in pmm, mongodb → high availibility → replset : some panels have data but most of them show “no data”, such as “replication lag” panel. For example this panel using metric “mongodb_mongod_replset_member_replication_lag”, when I go to “explore” menu and search for that metric it does not exist.
What am I missing here?
My mongodb user has sufficient privileges, tested via mongosh.
Regards