percona / mongodb_exporter

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

Serving SRV targets and getting all nodes in single request #835

Open adnull opened 3 months ago

adnull commented 3 months ago

As it stated in https://github.com/percona/mongodb_exporter/issues/773 there is no chance to monitor cluster nodes with the only mongodb+srv url specified. According to the specification, direct connection couldn't be used with a cluster, specified as a SRV domain

This update adds

Combining all that features we can specify cluster url as mongodb+srv domain and monitor all the nodes metrics and states in one request by querying /scrapeall endpoint