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

Trying to reload prometheus with the API return 403 Forbidden #3157

Closed
JrCs opened this Issue Sep 11, 2017 · 3 comments

Comments

Projects
None yet
3 participants
@JrCs
Copy link

JrCs commented Sep 11, 2017

What did you do?
Reloading prometheus configuration with the API using a command like:

curl -X POST http://prometheus.service.cs:9090/-/reload

What did you expect to see?
Expecting configuration reload

What did you see instead? Under which circumstances?
I receive a 403 Forbidden

Environment
Prometheus container

  • System information:
Linux 4.12.10-coreos x86_64
  • Prometheus version:
prometheus, version 2.0.0-beta.2 (branch: HEAD, revision: a52f082939a566d5269671e98be06fc6bdf61d09)
  build user:       root@41a0740ea598
  build date:       20170818-08:16:50
  go version:       go1.8.3
  • Prometheus configuration file:
global:
  scrape_interval: 15s # By default, scrape targets every 15 seconds.
  evaluation_interval: 15s # By default, scrape targets every 15 seconds.
  # scrape_timeout is set to the global default (10s).

  # The labels to add to any time series or alerts when communicating with
  # external systems (federation, remote storage, Alertmanager).
  external_labels:
    monitor: 'prometheus-cer69'

rule_files:
  # - '/config/alert.rules'

# A scrape configuration containing exactly one endpoint to scrape:
scrape_configs:
  # The job name is added as a label `job=<job_name>` to any timeseries scraped from this config.

  # Prometheus himself
  - job_name: 'prometheus'
    static_configs:
      - targets: ['localhost:9090']
@gouthamve

This comment has been minimized.

Copy link
Member

gouthamve commented Sep 11, 2017

Please use the --web.enable-lifecycle flag to enable /-/reload and /-/quit.

Also, It makes more sense to ask questions like this on the prometheus-users mailing list rather than in a GitHub issue. On the mailing list, more people are available to potentially respond to your question, and the whole community can benefit from the answers provided.

@aarondav

This comment has been minimized.

Copy link

aarondav commented Feb 15, 2018

Thanks for asking this question on GitHub, btw, it is much more accessible from a Google search!

@lock

This comment has been minimized.

Copy link

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.

@lock lock bot locked and limited conversation to collaborators Mar 22, 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.