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

A http based discovery service #1675

Closed
gouthamve opened this Issue May 27, 2016 · 5 comments

Comments

Projects
None yet
2 participants
@gouthamve
Copy link
Member

gouthamve commented May 27, 2016

Hi,

Would you like to include a http based discovery service where we send straightforward requests to a external service at regular intervals to get the targets info.

This would make it easier to implement custom SD mechanism (my feeling) and would be decoupling the prometheus instance from the SD mechanism allowing for all prometheus servers to use only one service for SD. It will be trivial to deploy this service in a HA configuration compared to a daemon on the same server as prometheus.

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented May 27, 2016

The file_sd mechanism covers this via files on disk. In such a setup running one per Prometheus server would be preferable to some form of HA setup, as it has similar failure characteristics but is much simpler.

@gouthamve

This comment has been minimized.

Copy link
Member Author

gouthamve commented May 27, 2016

Hmm.

But then again, take the case of the EC2 tags API. We need to access a throttled resource. We are going to run module based monitoring system with each team more or less having a prometheus server monitoring it.

We will have too many requests to the API, so we cache the tags at one service and then the file_sd based service will be requesting from the service and updating the files. I was hoping to write a generic http_sd service which would make the daemon redundant. I also think its easier to write http endpoints than managing files :).

But any general reservations against the http_sd idea (architecture wise)?

@brian-brazil

This comment has been minimized.

Copy link
Member

brian-brazil commented May 28, 2016

It requires a daemon, whereas files don't. We already support this functionality so I don't see a need for another one of these, especially as curl in a cronjob converts from one to the other.

@gouthamve

This comment has been minimized.

Copy link
Member Author

gouthamve commented May 28, 2016

+1 to curl in a cronjob!

Thanks

@lock

This comment has been minimized.

Copy link

lock bot commented Mar 24, 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 24, 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.