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

    Constructors
    Constructor
    Description
    RabbitMetrics(com.rabbitmq.client.ConnectionFactory connectionFactory, Iterable<io.micrometer.core.instrument.Tag> tags)
    Create a new meter binder recording the specified ConnectionFactory.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    bindTo(io.micrometer.core.instrument.MeterRegistry registry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • bindTo

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