Skip to content

Support a publishing filter for PushMeterRegistry #7010

@allnightlong

Description

@allnightlong

Please describe the feature request.

Introduce the filter, that could include/exclude meters from being published.

Rationale
Currently, all the meters registered in MeterRegistry are published on each step.
But for some meters (counters) with big tags cardinality the delta between steps is usually zero. It means, that registry is publishing lots of zero-values. This process consumes CPU, network, storage on the backend without adding any value.

Additional context
In my situation, I'm using newrelic as a backend, and about 80-90% of published events are zero-based.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions