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

Add lifecycle api #329

Merged
merged 1 commit into from
Aug 21, 2020
Merged

Add lifecycle api #329

merged 1 commit into from
Aug 21, 2020

Conversation

glightfoot
Copy link
Contributor

Fixes #327. Adds a lifecycle API with the same semantics as Prometheus. Moves the http serving to use a mux, and also moves starting the HTTP server to after the mapper is initialized.

@matthiasr

Signed-off-by: glightfoot <[email protected]>
@glightfoot glightfoot changed the title add lifecycle api Add lifecycle api Aug 10, 2020
Copy link
Contributor

@matthiasr matthiasr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect, thank you!

@matthiasr matthiasr merged commit a73707d into prometheus:master Aug 21, 2020
matthiasr added a commit that referenced this pull request Aug 21, 2020
with changelog entries for #325 and #329.

Signed-off-by: Matthias Rampke <[email protected]>
@glightfoot glightfoot deleted the reload-api branch August 21, 2020 14:03
@jimdaga
Copy link

jimdaga commented Jan 26, 2021

Sorry to follow up on a closed PR, but is an empty reply expected? It results in non-zero exit code when using curl.

$ curl -X POST  http://localhost:9102/-/quit
curl: (52) Empty reply from server

$ echo $?
52

I'd be happy to open an Issue if that's preferred.

@matthiasr
Copy link
Contributor

matthiasr commented Jan 26, 2021 via email

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

Successfully merging this pull request may close these issues.

Support reloading configuration from POST
3 participants