Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could Family class support limited number of metrics? #720

Open
zhitaoli-6 opened this issue Aug 1, 2024 · 0 comments
Open

Could Family class support limited number of metrics? #720

zhitaoli-6 opened this issue Aug 1, 2024 · 0 comments

Comments

@zhitaoli-6
Copy link

zhitaoli-6 commented Aug 1, 2024

As can be seen from the declaration of the class Family, there is only one method named Remove(), which can remove the metric added before.

class PROMETHEUS_CPP_CORE_EXPORT Family : public Collectable {

We worry about that there will be too many metrics if some label is added with very many values out of our expectation. So we want to limit the number of metrics for one Family object. Maybe LRU mechanism can get involved in to replace the very stale metric.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant