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

Did consul_sd_config support adding multi server? #3576

Closed
cauwulixuan opened this Issue Dec 12, 2017 · 4 comments

Comments

Projects
None yet
2 participants
@cauwulixuan
Copy link

cauwulixuan commented Dec 12, 2017

Here is my use case: I set up a consul cluster with serveral servers and clients, while in the Prometheus.yml, I can only set one server. I wanna add multi servers in the configs, in case the server I add in the Prometheus.yml go DOWN, the others can take over. just like:

  • job_name: 'consul'
    consul_sd_configs:
    - server: 'ip1:8500'
    - server: 'ip2:8500'
    - server: 'ip3:8500'
    ......
    - server: 'ipN:8500'

Any suggestions? Thanks a lot.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 12, 2017

Dupe of #1538

@cauwulixuan

This comment has been minimized.

Copy link
Author

cauwulixuan commented Dec 13, 2017

Sorry, I donnot think it's the same topic.
Here I am talking about how to add serveral servers in the Prometheus.yml as HA mode, not the same topic with #1538.

Maybe using a DNS name, instead of a server ip seems to be a practical way.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented Dec 13, 2017

It's the same issue, that's not how Consul is intended to be used.

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 23, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 23, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
You can’t perform that action at this time.