Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monitore several replica sets #49

Open
arthur-c opened this issue Jan 8, 2017 · 3 comments
Open

monitore several replica sets #49

arthur-c opened this issue Jan 8, 2017 · 3 comments
Labels

Comments

@arthur-c
Copy link

arthur-c commented Jan 8, 2017

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 ?

@dcu
Copy link
Owner

dcu commented Jan 10, 2017

it's not supported but I think we should implement it

@vvutharkar
Copy link

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?

@arvenil
Copy link

arvenil commented Nov 9, 2017

@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

dialInfo.Direct = true // Force direct connection
suggest that the idea was one exporter per node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants