Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd REST API for SD. #4228
Comments
This comment has been minimized.
This comment has been minimized.
|
You can look this document It use |
This comment has been minimized.
This comment has been minimized.
|
We don't want to invent new SDs in Prometheus (there's enough in the world already), and what you would suggest would do so and not work in a HA setup. If Consul isn't to your tastes (which is what we'd usually suggest here), I'd suggest using file_sd to build something. |
This comment has been minimized.
This comment has been minimized.
|
one big disadvantage in your proposal is that all your targets need to know the ip of the Prometheus server which might work in a small setup,but a big disadvantage at scale. Can you share more details about your setup? |
This comment has been minimized.
This comment has been minimized.
|
Thanks jojohappy, brian-brazil. Using the custom-sd is way to solve my problem, but I have many vms or docker created dynamically, and each time a vm or docker created, need to restart prometheus. I'm not sure if it will lose some metrics and if there is any problems that restart prometheus frequently. Thanks krasi-georgiev. I just have a hybrid cloud controller which will need to monitor the vms or dockers created by the hybrid cloud controller in different cloud resource provider. |
This comment has been minimized.
This comment has been minimized.
|
Prometheus has provide api to reload configuration, It will not need to restart Prometheus and impact on scrape process. |
This comment has been minimized.
This comment has been minimized.
|
Thansk all for the comments and replys. |
shunliz
closed this
Jun 8, 2018
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 22, 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. |
shunliz commentedJun 6, 2018
Proposal
Use case. Why is this important?
As a third-party system, i need register/deregister my endpoint to prometheus by REST API and be scraped. I don't like existing SDs as they are not flexible.
Not sure if it's a good idea, any suggestion?
Nice to have' is not a good use case :)