percona / mongodb_exporter

A Prometheus exporter for MongoDB including sharding, replication and storage engines
Apache License 2.0
1.17k stars 426 forks source link

Can't use 'local' database through mongos" and mongos metrics mongodb_op_counters_total miss #525

Open jicki opened 2 years ago

jicki commented 2 years ago

Exporter version

exporter 0.33.0

Logs

time="2022-07-15T03:54:24Z" level=debug msg="getDiagnosticData result"
{}
time="2022-07-15T03:54:24Z" level=warning msg="cannot create metrics for oplog: (IllegalOperation) Can't use 'local' database through mongos"
kevincantu commented 1 year ago

I see the same with exporter 0.39.0, when running the exporter as a sidecar in my router pods:

time="2023-08-26T00:30:19Z" level=error msg="cannot retrieve engine type: Engine is unavailable"
time="2023-08-26T00:30:19Z" level=warning msg="cannot create metrics for oplog: (IllegalOperation) Can't use 'local' database through mongos"
itayvolo commented 4 months ago

+1