Configuration reloading

23 views
Skip to first unread message

Dmitry

unread,
May 14, 2020, 6:54:44 AM5/14/20
to Prometheus Users
Hi guys.
I'm always reload prom configuration with reloading of prom container. Is it normal? Or it's better to do it through post request.

Julius Volz

unread,
May 14, 2020, 8:03:15 AM5/14/20
to Dmitry, Prometheus Users
We certainly recommend to either send a HUP signal or reload via the HTTP API (https://prometheus.io/docs/prometheus/latest/management_api/#reload) for reloading, rather than restarting the whole container. Depending on the size of your Prometheus, restarting it might take some time due to proper shutdown procedures and then replaying the write-ahead log (WAL) upon restart, so while it's not super costly, it's still disruptive if you do it often.

On Thu, May 14, 2020 at 12:54 PM Dmitry <barnyb...@gmail.com> wrote:
Hi guys.
I'm always reload prom configuration with reloading of prom container. Is it normal? Or it's better to do it through post request.

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f6074165-655e-4366-b7cd-410174bf6ef8%40googlegroups.com.


--
Julius Volz
PromLabs - promlabs.com

Dmitry

unread,
May 15, 2020, 4:34:40 AM5/15/20
to Prometheus Users
Thank you, Julius!
Reply all
Reply to author
Forward
0 new messages