@Configuration @AutoConfigureAfter(value={MetricsAutoConfiguration.class,RabbitAutoConfiguration.class,SimpleMetricsExportAutoConfiguration.class}) @ConditionalOnClass(value={com.rabbitmq.client.ConnectionFactory.class,org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.class}) @ConditionalOnBean(value={org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.class,io.micrometer.core.instrument.MeterRegistry.class}) public class RabbitMetricsAutoConfiguration extends Object
Auto-configuration
for metrics on all available
connection factories
.Constructor and Description |
---|
RabbitMetricsAutoConfiguration(io.micrometer.core.instrument.MeterRegistry registry) |
Modifier and Type | Method and Description |
---|---|
void |
bindConnectionFactoriesToRegistry(Map<String,org.springframework.amqp.rabbit.connection.AbstractConnectionFactory> connectionFactories) |
public RabbitMetricsAutoConfiguration(io.micrometer.core.instrument.MeterRegistry registry)
@Autowired public void bindConnectionFactoriesToRegistry(Map<String,org.springframework.amqp.rabbit.connection.AbstractConnectionFactory> connectionFactories)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.