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

Prometheus quit via url #2482

Closed
mg03 opened this Issue Mar 7, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@mg03
Copy link

mg03 commented Mar 7, 2017

What did you do?

curl -X POST localhost:9090/-/quit

What did you expect to see?

Prometheus to stop

What did you see instead? Under which circumstances?

Prometheus keeps running and I get 404 page not found for /-/quit

Environment

ubuntu 14.04

  • System information:

    insert output of uname -srm here

Linux 4.4.0-64-generic x86_64

  • Prometheus version:

    insert output of prometheus -version here

prometheus -version
prometheus, version 1.5.2 (branch: master, revision: bd1182d)
build user: root@a8af9200f95d
build date: 20170210-14:41:22
go version: go1.7.5

  • Alertmanager version:

    insert output of alertmanager -version here (if relevant to the issue)

  • Prometheus configuration file:

insert configuration here
  • Alertmanager configuration file:
insert configuration here (if relevant to the issue)
  • Logs:
curl -X POST localhost:9090/-/quit
404 page not found
@beorn7

This comment has been minimized.

Copy link
Member

beorn7 commented Mar 8, 2017

Could you elaborate your use case? Why do you need this?

@juliusv

This comment has been minimized.

Copy link
Member

juliusv commented Mar 8, 2017

Since allowing remote shutdown is a bit risky, you need to start Prometheus with the -web.enable-remote-shutdown flag to enable this. It works for me with that flag, so closing.

@juliusv juliusv closed this Mar 8, 2017

@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.