rust-prometheus icon indicating copy to clipboard operation
rust-prometheus copied to clipboard

Is there a way to cleanup older metrics stored?

Open codingkarthik opened this issue 2 years ago • 1 comments
trafficstars

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.

codingkarthik avatar Jun 16 '23 11:06 codingkarthik

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

suryapandian avatar Jul 12 '23 16:07 suryapandian