public class CompositeMeterRegistryConfigurer extends java.lang.Object implements MeterRegistryConfigurer<io.micrometer.core.instrument.composite.CompositeMeterRegistry>
MeterRegistryConfigurer
that adds the binders and filters
to the micrometer meter registry. This is specifically needed for the MetricsEndpoint
Constructor and Description |
---|
CompositeMeterRegistryConfigurer(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(io.micrometer.core.instrument.composite.CompositeMeterRegistry meterRegistry)
Configures a meter registry with binders, filters, etc.
|
java.lang.Class<io.micrometer.core.instrument.composite.CompositeMeterRegistry> |
getType() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
supports
public CompositeMeterRegistryConfigurer(java.util.Collection<io.micrometer.core.instrument.binder.MeterBinder> binders, java.util.Collection<io.micrometer.core.instrument.config.MeterFilter> filters)
binders
- binder beansfilters
- filter beanspublic void configure(@NonNull io.micrometer.core.instrument.composite.CompositeMeterRegistry 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.composite.CompositeMeterRegistry>
meterRegistry
- Meter registry to bind metrics to.public java.lang.Class<io.micrometer.core.instrument.composite.CompositeMeterRegistry> getType()
getType
in interface MeterRegistryConfigurer<io.micrometer.core.instrument.composite.CompositeMeterRegistry>