How to reload Prometheus configuration

Let me guess - you're running a docker container with prometheus and you don't want to kill it everytime you make a change to the configuration file. That was my case too. I added some exporter and wanted to reload the configuration and learned that I can simply call the /-/reload endpoint to reload the configuration.

Here's how you can do it:

curl -s -XPOST localhost:9090/-/reload

Published on September 13, 2024 1 min read