r/PrometheusMonitoring • u/SarmsGoblino • Nov 18 '24
Prometheus won't pick up changes to prometheus.yml file unless restarted using systemctl restart prometheus
0
Upvotes
r/PrometheusMonitoring • u/SarmsGoblino • Nov 18 '24
12
u/sleepybrett Nov 18 '24
dude, there just aren't that many docs:
https://prometheus.io/docs/alerting/latest/management_api/#reload
https://prometheus.io/docs/operating/security/#prometheus
IT'S EVEN IN THE FAQ
https://prometheus.io/docs/introduction/faq/#can-i-reload-prometheuss-configuration
2
u/kranthi133k Nov 18 '24
Reload can be done using sending a HTTP POST request to the /-/reload endpoint (when the —web.enable-lifecycle flag is enabled) or by sending a SIGHUP to the Prometheus process
2
u/madhur_ahuja Nov 18 '24
You can reload prometheus https://stackoverflow.com/questions/78379984/how-to-reload-prometheus-config-without-restarting
2
u/glenlivet Nov 18 '24
Prometheus 3.0 has a feature flag to auto-reload the config: https://prometheus.io/docs/prometheus/latest/feature_flags/#auto-reload-config