@Configuration
@ConditionalOnClass(value={com.rabbitmq.client.ConnectionFactory.class,org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.class})
@ConditionalOnBean(value=org.springframework.amqp.rabbit.connection.AbstractConnectionFactory.class)
@ConditionalOnProperty(value="management.metrics.rabbitmq.instrument",
matchIfMissing=true)
@EnableConfigurationProperties(value=RabbitMetricsProperties.class)
public class RabbitMetricsConfiguration
extends Object
Configure metrics for all available connection factories
.
- Since:
- 2.0.0
- Author:
- Stephane Nicoll