Class RabbitMetrics
- java.lang.Object
- org.springframework.boot.actuate.metrics.amqp.RabbitMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class RabbitMetrics extends Object implements io.micrometer.core.instrument.binder.MeterBinder
AMeterBinder
for RabbitMQ Java Client metrics.- Since:
- 2.0.0
Constructor Summary
Constructors Constructor Description RabbitMetrics(com.rabbitmq.client.ConnectionFactory connectionFactory, Iterable<io.micrometer.core.instrument.Tag> tags)
Create a new meter binder recording the specifiedConnectionFactory
.
Constructor Detail
RabbitMetrics
public RabbitMetrics(com.rabbitmq.client.ConnectionFactory connectionFactory, Iterable<io.micrometer.core.instrument.Tag> tags)
Create a new meter binder recording the specifiedConnectionFactory
.- Parameters:
connectionFactory
- theConnectionFactory
to instrumenttags
- tags to apply to all recorded metrics
Method Detail
bindTo
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
- Specified by:
bindTo
in interfaceio.micrometer.core.instrument.binder.MeterBinder