Skip to content

Add ability to filter out metrics #4599

@dlmarion

Description

@dlmarion

Is your feature request related to a problem? Please describe.
It's possible that a user may not need one or more metrics that we publish via Micrometer.

Describe the solution you'd like
I think we can add a method on MeterRegistryFactory, maybe even a default method, that accepts a comma separated list of regular expressions via a property value, that returns a MeterFilter via MeterFilter.deny(Predicate). This MeterFilter that is returned will need to be added to the MeterRegistry using MeterRegistry.meterFilter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementThis issue describes a new feature, improvement, or optimization.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions