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 upIs there a way to supply and reload config to prometheus via a POST #1714
Comments
This comment has been minimized.
This comment has been minimized.
|
The flat file and SIGHUP/reload is the API we provide, you're free to build something on top of this that takes in POSTs and causes the config to be reloaded. |
brian-brazil
added
the
kind/question
label
Jun 7, 2016
This comment has been minimized.
This comment has been minimized.
|
Roger, thanks @brian-brazil |
fabxc
added
the
reviewed/won't fix
label
Jun 8, 2016
fabxc
closed this
Jun 8, 2016
This comment has been minimized.
This comment has been minimized.
|
Note that we do provide a POST |
This comment has been minimized.
This comment has been minimized.
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. |
vijayendrabvs commentedJun 7, 2016
What did you do?
Set up a Prometheus server, following the instructions at https://prometheus.io/docs/introduction/install/ and https://prometheus.io/docs/introduction/getting_started/ .
What did you expect to see?
I expected to find some documentation that would allow me to not have to use a static prometheus.yml file, or atleast, find an API that would let me supply new scrape configs via a POST API call to Prometheus. I found another external link on google describing the reload API -
curl -X POST http://localhost:9090/-/reloadbut it still seems to require the prometheus.yml file to be configured manually with the new scrape_config section (job_name + scrape_interval + target_groups).What did you see instead? Under which circumstances?
Couldn't find more API info for dynamic configuration of a running Prometheus server.
Environment
Either docker or standalone (OS doesn't matter in this case).
System information:
insert output of
uname -srmherePrometheus version:
insert output of
prometheus -versionhereAlertmanager version:
insert output of
alertmanager -versionhere (if relevant to the issue)