Add ability to filter out metrics
- Dominant language
- Java
- Stars
- 1.2k
- Forks
- 487
- Avg merge
- 4d 5h
- Merged PRs (30d)
- 13
Description
**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`.
Contributor guide
Research direction
Locate MeterRegistryFactory and inspect how MeterRegistry instances are created and configured. Review Micrometer's MeterFilter.deny(Predicate) and MeterRegistry.meterFilter APIs, then define the property handling for comma-separated regular expressions. Done means configured patterns filter out matching published metrics from the registry.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- observability
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100