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
A
MeterBinder
for RabbitMQ Java Client metrics.- Since:
- 2.0.0
- Author:
- Arnaud Cogoluègnes, Stephane Nicoll
-
Constructor Summary
ConstructorDescriptionRabbitMetrics
(com.rabbitmq.client.ConnectionFactory connectionFactory, Iterable<io.micrometer.core.instrument.Tag> tags) Create a new meter binder recording the specifiedConnectionFactory
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
bindTo
(io.micrometer.core.instrument.MeterRegistry registry)
-
Constructor Details
-
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 Details
-
bindTo
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindTo
in interfaceio.micrometer.core.instrument.binder.MeterBinder
-