docs: improve section about Prometheus graceful shutdown.

fixes https://github.com/prometheus/prometheus/issues/13183

Signed-off-by: machine424 <ayoubmrini424@gmail.com>
This commit is contained in:
machine424 2024-12-02 12:10:04 +01:00
parent dfbfe8b5e8
commit 5d248e2d10
No known key found for this signature in database
GPG key ID: A4B001A4FDEE017D

View file

@ -262,6 +262,9 @@ process ID.
## Shutting down your instance gracefully. ## Shutting down your instance gracefully.
While Prometheus does have recovery mechanisms in the case that there is an While Prometheus does have recovery mechanisms in the case that there is an
abrupt process failure it is recommend to use the `SIGTERM` signal to cleanly abrupt process failure it is recommended to use signals or interrupts for a
shutdown a Prometheus instance. If you're running on Linux this can be performed clean shutdown of a Prometheus instance. On Linux, this can be done by sending
by using `kill -s SIGTERM <PID>`, replacing `<PID>` with your Prometheus process ID. the `SIGTERM` or `SIGINT` signals to the Prometheus process. For example, you
can use `kill -s <SIGNAL> <PID>`, replacing `<SIGNAL>` with the signal name
and `<PID>` with the Prometheus process ID. Alternatively, you can press the
interrupt character at the controlling terminal, which by default is `^C` (Control-C).