Today I learned how to reload Prometheus configuration without restarting it. There are two ways:

  1. Send a SIGHUP signal to the prometheus process
kill -HUP 1234
  1. Send a post request to the /-/reload HTTP endpoint.
curl -X POST http://localhost:9090/-/reloadcurl -X POST http://localhost:9090/-/reload

More