keith-turner commented on issue #4599:
URL: https://github.com/apache/accumulo/issues/4599#issuecomment-2128244313

   One way to do this w/ the existing code is by subclassing an existing 
MeterRegistryFactory
   
   
   ```java
   package mypackage;
   
   import io.micrometer.core.instrument.MeterRegistry;
   import io.micrometer.core.instrument.config.MeterFilter;
   import org.apache.accumulo.core.spi.metrics.LoggingMeterRegistryFactory;
   
   public class FilteringLoggingMRFactory extends LoggingMeterRegistryFactory {
       @Override
       public MeterRegistry create(final InitParameters params) {
          var meterRegistry = super.create(params);
           MeterFilter myFilter = MeterFilter.denyNameStartsWith("accumulo.gc");
           meterRegistry.config().meterFilter(myFilter);
           return meterRegistry;
       }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to