8000 Could `Family` class support limited number of metrics? · Issue #720 · jupp0r/prometheus-cpp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Could Family class support limited number of metrics? #720
Open
@zhitaoli-6

Description

@zhitaoli-6

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0