Open arthur-c opened 7 years ago
it's not supported but I think we should implement it
https://godoc.org/gopkg.in/mgo.v2#Dial . claims to support more than one DB endpoint in the URI param string. This is the package being used in at https://github.com/dcu/mongodb_exporter/blob/master/shared/connection.go#L12 , So why does it not seem to parse urls of the format "mongodb://localhost:10500,localhost:10700" properly?
@dcu
it's not supported but I think we should implement it
I don't understand actually what should be implemented here? Are you saying that one exporter should actually connect to all replica set members and scrape all of them? Currently this line https://github.com/dcu/mongodb_exporter/blob/835afcacdc1c0049c0081f063ffdfbbfe01e2a57/shared/connection.go#L39 suggest that the idea was one exporter per node?
Hi,
I tweaked the mongodb.uri parameter in many ways but I am not able to monitore several replica sets on a same machine with one mongodb_exporter.
Should we use one exporter by RS ?