Today I learned how to reload Prometheus configuration without restarting it. There are two ways:
- Send a
SIGHUPsignal to the prometheus process
kill -HUP 1234
- Send a post request to the
/-/reloadHTTP endpoint.
curl -X POST http://localhost:9090/-/reloadcurl -X POST http://localhost:9090/-/reload