public class MicrometerMeterRegistryConfigurer extends java.lang.Object implements MeterRegistryConfigurer<io.micrometer.core.instrument.MeterRegistry>
MeterRegistryConfigurer that adds the binders and filters
to the micrometer meter registry. This is specifically needed for the MetricsEndpoint| Constructor and Description |
|---|
MicrometerMeterRegistryConfigurer(java.util.Collection<io.micrometer.core.instrument.binder.MeterBinder> binders,
java.util.Collection<io.micrometer.core.instrument.config.MeterFilter> filters)
Constructor for the micrometer meter registry configurer.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(@NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry)
Method to configure a meter registry with binders, filters, etc.
|
boolean |
supports(@NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry)
Method to determine if this configurer supports the meter registry type.
|
public MicrometerMeterRegistryConfigurer(java.util.Collection<io.micrometer.core.instrument.binder.MeterBinder> binders,
java.util.Collection<io.micrometer.core.instrument.config.MeterFilter> filters)
binders - list of binder beansfilters - list of filter beanspublic void configure(@NotNull
@NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry)
It is Important that filters are the first thing added so that subsequent operations are appropriately filtered.
configure in interface MeterRegistryConfigurer<io.micrometer.core.instrument.MeterRegistry>meterRegistry - Meter registry to bind metrics to.public boolean supports(@NotNull
@NotNull io.micrometer.core.instrument.MeterRegistry meterRegistry)
supports in interface MeterRegistryConfigurer<io.micrometer.core.instrument.MeterRegistry>meterRegistry - a meter registry