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

SRV with direct connect #773

Open
ariksidney opened this issue Jan 4, 2024 · 0 comments
Open

SRV with direct connect #773

ariksidney opened this issue Jan 4, 2024 · 0 comments

Comments

@ariksidney
Copy link

Is your feature request related to a problem? Please describe.
We're using Atlas on AWS with a private endpoint. When I try to run the exporter with the srv connection string, I cannot connect to the MongoDB cluster. However if use a non srv connection string (with all the replica set nodes in it) and use --mongodb.direct-connect, the connection works without any issues.

Describe the solution you'd like
A solution would be to resolve the srv dns entry if the --mongodb.direct-connect option is set and the uri is a srv connection string. A new exporter would then be created for each replica.

Describe alternatives you've considered
The easiest alternative would be to just use the replica nodes uri instead of the srv connection string. However we currently only have the srv connection string in our configMaps.

Additional context
If you think this feature would be helpful for the project, I would gladly contribute it.

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

No branches or pull requests

1 participant