org.springframework.boot.actuate.metrics.amqp

Class 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 Detail

      • RabbitMetrics

        public RabbitMetrics(com.rabbitmq.client.ConnectionFactory connectionFactory,
                             Iterable<io.micrometer.core.instrument.Tag> tags)
        Create a new meter binder recording the specified ConnectionFactory.
        Parameters:
        connectionFactory - the ConnectionFactory to instrument
        tags - tags to apply to all recorded metrics
    • Method Detail

      • bindTo

        public void bindTo(io.micrometer.core.instrument.MeterRegistry registry)
        Specified by:
        bindTo in interface io.micrometer.core.instrument.binder.MeterBinder