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.
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.