percona / mongodb_exporter

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

mongodb_exporter can’t collect mongos connections:mongodb_mongos_connections #678

Closed carry2017123 closed 4 months ago

carry2017123 commented 1 year ago

Describe the bug mongodb_exporter can’t collect mongos connections:mongodb_mongos_connections To Reproduce Steps to reproduce the behavior: ./mongodb_exporter --mongodb.uri=mongodb://127.0.0.1:27017/admin --discovering-mode --compatible-mode --collector.indexstats --collector.replicasetstatus --collector.diagnosticdata --collector.dbstats --collector.topmetrics --collector.collstats

Expected behavior get mongodb_mongos_connections result

Logs no error log

Environment

Additional context Add any other context about the problem here.

igroene commented 4 months ago

looks like that metric is no longer available. Try looking for mongodb_connections instead