@Deprecated public class MicrometerMetricsFactory extends java.lang.Object implements MetricsFactory, MessageSourceMetricsConfigurer, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.SmartInitializingSingleton
MetricsFactory. Configures the resulting
channel, and handler metrics to use Micrometer metrics instead of the legacy Spring
Integration metrics. Also implements MessageSourceMetricsConfigurer, which is
used to inject a counter into all message source beans that implement
MessageSourceMetrics.IntegrationManagementConfigurer| Constructor and Description |
|---|
MicrometerMetricsFactory(io.micrometer.core.instrument.MeterRegistry meterRegistry)
Deprecated.
Construct an instance with the provided
MeterRegistry. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSingletonsInstantiated()
Deprecated.
|
void |
configure(MessageSourceMetrics metrics,
java.lang.String name)
Deprecated.
|
AbstractMessageChannelMetrics |
createChannelMetrics(java.lang.String name)
Deprecated.
Factory method to create an
AbstractMessageChannelMetrics. |
AbstractMessageHandlerMetrics |
createHandlerMetrics(java.lang.String name)
Deprecated.
Factory method to create an
AbstractMessageHandlerMetrics. |
AbstractMessageChannelMetrics |
createPollableChannelMetrics(java.lang.String name)
Deprecated.
Factory method to create an
AbstractMessageChannelMetrics for
a pollable channel. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Deprecated.
|
void |
setComponentCountTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> componentCountTagProvider)
Deprecated.
Provide a function to generate tags for component (channels, handlers, sources) gauges.
|
void |
setCounterNameProvider(java.util.function.Function<java.lang.String,java.lang.String> counterNameProvider)
Deprecated.
Provide a function to generate a counter name for the bean name.
|
void |
setCounterTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> counterTagProvider)
Deprecated.
Provide a function to generate counter tags for the bean name.
|
void |
setErrorCounterNameProvider(java.util.function.Function<java.lang.String,java.lang.String> errorCounterNameProvider)
Deprecated.
Provide a function to generate an error counter name for the bean name.
|
void |
setErrorCounterTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> counterTagProvider)
Deprecated.
Provide a function to generate error counter tags for the bean name.
|
void |
setReceiveCounterNameProvider(java.util.function.Function<java.lang.String,java.lang.String> counterNameProvider)
Deprecated.
Provide a function to generate a receive counter name for the bean name.
|
void |
setReceiveCounterTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> counterTagProvider)
Deprecated.
Provide a function to generate receive counter tags for the bean name.
|
void |
setReceiveErrorCounterNameProvider(java.util.function.Function<java.lang.String,java.lang.String> errorCounterNameProvider)
Deprecated.
Provide a function to generate a receive error counter name for the bean name.
|
void |
setReceiveErrorCounterTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> counterTagProvider)
Deprecated.
Provide a function to generate receive error counter tags for the bean name.
|
void |
setTimerNameProvider(java.util.function.Function<java.lang.String,java.lang.String> timerNameProvider)
Deprecated.
Provide a function to generate a timer name for the bean name.
|
void |
setTimerTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> timerTagProvider)
Deprecated.
Provide a function to generate timer tags for the bean name.
|
public MicrometerMetricsFactory(io.micrometer.core.instrument.MeterRegistry meterRegistry)
MeterRegistry.meterRegistry - the registry.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonpublic void setTimerNameProvider(java.util.function.Function<java.lang.String,java.lang.String> timerNameProvider)
timerNameProvider - the timerNameProvider to setpublic void setCounterNameProvider(java.util.function.Function<java.lang.String,java.lang.String> counterNameProvider)
counterNameProvider - the counterNameProvider to setpublic void setErrorCounterNameProvider(java.util.function.Function<java.lang.String,java.lang.String> errorCounterNameProvider)
errorCounterNameProvider - the counterNameProvider to setpublic void setReceiveCounterNameProvider(java.util.function.Function<java.lang.String,java.lang.String> counterNameProvider)
counterNameProvider - the counterNameProvider to setpublic void setReceiveErrorCounterNameProvider(java.util.function.Function<java.lang.String,java.lang.String> errorCounterNameProvider)
errorCounterNameProvider - the counterNameProvider to setpublic void setTimerTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> timerTagProvider)
timerTagProvider - the timerTagProvider to setpublic void setCounterTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> counterTagProvider)
counterTagProvider - the counterTagProvider to setpublic void setErrorCounterTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> counterTagProvider)
counterTagProvider - the counterTagProvider to setpublic void setReceiveCounterTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> counterTagProvider)
counterTagProvider - the counterTagProvider to setpublic void setReceiveErrorCounterTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> counterTagProvider)
counterTagProvider - the counterTagProvider to setpublic void setComponentCountTagProvider(java.util.function.Function<java.lang.String,java.lang.String[]> componentCountTagProvider)
componentCountTagProvider - the componentCountTagProvider to setpublic AbstractMessageChannelMetrics createChannelMetrics(java.lang.String name)
MetricsFactoryAbstractMessageChannelMetrics.createChannelMetrics in interface MetricsFactoryname - the name.public AbstractMessageChannelMetrics createPollableChannelMetrics(java.lang.String name)
MetricsFactoryAbstractMessageChannelMetrics for
a pollable channel.createPollableChannelMetrics in interface MetricsFactoryname - the name.public AbstractMessageHandlerMetrics createHandlerMetrics(java.lang.String name)
MetricsFactoryAbstractMessageHandlerMetrics.createHandlerMetrics in interface MetricsFactoryname - the name.public void configure(MessageSourceMetrics metrics, java.lang.String name)
configure in interface MessageSourceMetricsConfigurer