Class MicrometerMetricsCaptorConfiguration
java.lang.Object
org.springframework.integration.support.management.micrometer.MicrometerMetricsCaptorConfiguration
@Configuration(proxyBeanMethods=false) public class MicrometerMetricsCaptorConfiguration extends Object
An
ImportBeanDefinitionRegistrar to conditionally add a MicrometerMetricsCaptor
bean when io.micrometer.core.instrument.MeterRegistry is present in classpath and
no MicrometerMetricsCaptor.MICROMETER_CAPTOR_NAME bean present yet.- Since:
- 5.2.9
- Author:
- Artem Bilan
-
Field Summary
Fields Modifier and Type Field Description static booleanMETER_REGISTRY_PRESENTAbooleanflag to indicate if theio.micrometer.core.instrument.MeterRegistryclass is present in the CLASSPATH to allow aMicrometerMetricsCaptorbean. -
Constructor Summary
Constructors Constructor Description MicrometerMetricsCaptorConfiguration() -
Method Summary
Modifier and Type Method Description MicrometerMetricsCaptormicrometerMetricsCaptor(ObjectProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistries)
-
Field Details
-
METER_REGISTRY_PRESENT
public static final boolean METER_REGISTRY_PRESENTAbooleanflag to indicate if theio.micrometer.core.instrument.MeterRegistryclass is present in the CLASSPATH to allow aMicrometerMetricsCaptorbean.
-
-
Constructor Details
-
MicrometerMetricsCaptorConfiguration
public MicrometerMetricsCaptorConfiguration()
-
-
Method Details
-
micrometerMetricsCaptor
@Bean(name="integrationMicrometerMetricsCaptor") public MicrometerMetricsCaptor micrometerMetricsCaptor(ObjectProvider<io.micrometer.core.instrument.MeterRegistry> meterRegistries)
-