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
Linux 4.12.10-coreos x86_64
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
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']
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.
Thanks for asking this question on GitHub, btw, it is much more accessible from a Google search!
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.
Most helpful comment
Thanks for asking this question on GitHub, btw, it is much more accessible from a Google search!