accumulo icon indicating copy to clipboard operation
accumulo copied to clipboard

Add ability to filter out metric by id name

Open ibilley7 opened this issue 7 months ago • 2 comments

Users might want to the ability to filter out metrics that are not necessary for them to view. Created a static getMeterFilter function in MeterRegistryFactory to filter out metrics user does not want to see. Created new Property GENERAL_MICROMETER_ID_FILTERS, and filters specified via this property will be added to meter registries created in MeterInfoImpl

Closes issue #4599

ibilley7 avatar Jun 04 '25 17:06 ibilley7

This PR is failing checks because we need to specifically allow the MeterFilter class within the apilyzer configuration. You need to insert the following:

<allow>io[.]micrometer[.]core[.]instrument[.]config[.]MeterFilter</allow>

to core/pom.xml, directly below where there is a similar statement for MeterRegistry, line 301, so that we then have the following:

 <allows>
                <allow>io[.]micrometer[.]core[.]instrument[.]MeterRegistry</allow>
                <allow>io[.]micrometer[.]core[.]instrument[.]config[.]MeterFilter</allow>
                <allow>io[.]opentelemetry[.]api[.]OpenTelemetry</allow>
                ...

lbschanno avatar Jun 05 '25 10:06 lbschanno

Today is the last day of my internship and I am returning back to school, so I would need someone else to take over this ticket if its a good enhancement to move forward with, as I won't have time to focus on it.

ibilley7 avatar Aug 19 '25 19:08 ibilley7