rust-prometheus
rust-prometheus copied to clipboard
Is there a way to cleanup older metrics stored?
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.
There is no easy way to clean up legacy data. via admin API you could https://sbcode.net/prometheus/delete-timeseries/