dcu / mongodb_exporter

MongoDB exporter for prometheus.io
MIT License
353 stars 216 forks source link

fix GetDatabaseStatus and DatabaseStatus.Export for databases without shards #48

Closed jnjackins closed 7 years ago

jnjackins commented 7 years ago

This PR fixes several issues I was having with mongodb_exporter with -mongodb.collect.database enabled. My databases do not have any shards.

savoie commented 7 years ago

@dcu Any chance this will be merged? It fixes the same "inconsistent label cardinality" problem we were experiencing on our own servers. (Thank you, @jnjackins!)