apache / apache/accumulo

Add ability to filter out metrics

Open
#4,599 6 comments 0 reactions 0 assignees View on GitHub
enhancement
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.