Error in pmm-client for mongos

I am continuously getting the following error and warning in pmm-client for mongos.

ERRO level=error msg=“cannot retrieve engine type: Engine is unavailable” agentID=/agent_id/ component=agent-process type=mongodb_exporter

WARN level=warning msg=“cannot create metrics for oplog: (IllegalOperation) Can’t use ‘local’ database through mongos” agentID=/agent_id/ component=agent-process type=mongodb_exporter

percona/psmdb-operator: 1.14.1
percona/psmdb-db: 1.14.3
pmm-client: 2.35.0

Please advise. Thank you.

Hi, this sounds like a bug with pmm-client. You can open a ticket at

I’m experiencing this issue as well with percona/mongodb_exporter. It works fine for configs and shards.
It seems like we have the following related jira

time="2023-07-26T14:40:38Z" level=debug msg="MongoDB edition: Community"                                                                                                                                                                                   │
│ time="2023-07-26T14:40:38Z" level=error msg="cannot retrieve engine type: Engine is unavailable"                                                                                                                                                           │
│ time="2023-07-26T14:40:38Z" level=warning msg="cannot create metrics for oplog: (IllegalOperation) Can't use 'local' database through mongos"                                                                                                              │
│ time="2023-07-26T14:40:38Z" level=debug msg="getting stats for databases: [admin config db_name]"                                                                                                                          │
│ time="2023-07-26T14:40:53Z" level=debug msg="getDiagnosticData result"

Also seeing this issue with pmm-client 2.39.0