-
Notifications
You must be signed in to change notification settings - Fork 496
Description
What are you trying to achieve?
Developing prometheus metric exporter with help of opentelemetry-cpp. Problem of my case is that i have only one counter metric with labels. Specific metric timeseries differ by this labels. By the way, amount of unique label tuples is always grow, which may lead to big memory consumption. Another problem, it is that some labels might become outdated after some period of time. This main problem, how to get rid of this old labels from internal storage.
Only working approach is to delete metric and recreate it, but it looks like bad design
What did you expect to see?
Some interface for expire unused labels or just deletion from this storage.
Additional context.
Ofc it could be ideal to have some ttl expiration policy internally. I have it in my project but i can't use it ith opentelemetry without patching codebase.