The push gateway supports a persistence file via the --persistence.file parameter to allow cached metrics to survive restarts.
On 15 January 2021 09:46:18 GMT, Peter Toft <[email protected]> wrote: >Hi guys > >I use a pushgateway -> prometheus -> grafana system to display >simulation >metrics, and when I reboot the server I loose all the metrics I have in >the >pushgateway. They appear when I have rerun my external test server >pushing >metrics. > >If I know that there is a reboot of the pushgateway coming. Is there a >simple'ish way to save and after a reboot restore these metrics? > >Have a nice day > >/Peter > >-- >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 [email protected]. >To view this discussion on the web visit >https://groups.google.com/d/msgid/prometheus-users/242b9191-139f-4a96-9004-4c8fc4c9cb3bn%40googlegroups.com. -- Sent from my Android device with K-9 Mail. Please excuse my brevity. -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/8BBAB08F-C6E2-4BE7-B3B8-2D3E0A9AEC19%40Jahingo.com.

