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