tikv / rust-prometheus

Prometheus instrumentation library for Rust applications
Apache License 2.0
1.04k stars 182 forks source link

Is there a way to cleanup older metrics stored? #494

Open codingkarthik opened 1 year ago

codingkarthik commented 1 year ago

I am recording Prometheus metrics in my application and would like to clean up the legacy data in the collectors regularly. I need to clean up because my application uses a high-cardinality label and the longer my server runs, the more the memory increases steadily.

suryapandian commented 1 year ago

There is no easy way to clean up legacy data. via admin API you could https://sbcode.net/prometheus/delete-timeseries/