Pushgateway metrics cleanup

279 views
Skip to first unread message

Aparna uday

unread,
Jul 28, 2020, 5:45:03 AM7/28/20
to Prometheus Developers
I could see API can be used to cleanup metrics based on job name. I would like to know if there is a way to cleanup metrics in pushgateway based on time (eg: clean metrics older than 2 weeks). 

Julius Volz

unread,
Jul 28, 2020, 11:19:08 AM7/28/20
to Aparna uday, Prometheus Developers
Hi,

There've been a number of issues and threads on this in the past, these might provide useful background info on the discussion:


Most of the responses so far have been: a TTL usually doesn't solve a problem that would come up in a use case that the Pushgateway is designed to handle.

Regards,
Julius

On Tue, Jul 28, 2020 at 11:45 AM Aparna uday <apr....@gmail.com> wrote:
I could see API can be used to cleanup metrics based on job name. I would like to know if there is a way to cleanup metrics in pushgateway based on time (eg: clean metrics older than 2 weeks). 

--
You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/5da59638-f9d4-4c76-9df3-0b793b6656fao%40googlegroups.com.


--
Julius Volz
PromLabs - promlabs.com

Braden Schaeffer

unread,
Jun 15, 2023, 12:20:16 AM6/15/23
to Prometheus Developers
I have yet to understand how push gateway is both simultaneously designed for handling batch job metrics but is also not a great use case for batch job metrics..
Reply all
Reply to author
Forward
0 new messages