Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to reload prometheus config without restarting?

How to reload prometheus config changes without restarting prometheus process.

like image 623
Nirzak Avatar asked Sep 02 '25 17:09

Nirzak


1 Answers

To do this, you have to first start your Prometheus process with --web.enable-lifecycle flag. After starting with this flag, then you can hit the below URL every time you want to reload your config changes.

curl -X POST <your_prometheus_server_url>:<port>/-/reload

Related documentation here.

like image 191
Nirzak Avatar answered Sep 05 '25 14:09

Nirzak