Package com.rabbitmq.client.amqp.metrics
Class MicrometerMetricsCollector
java.lang.Object
com.rabbitmq.client.amqp.metrics.MicrometerMetricsCollector
- All Implemented Interfaces:
MetricsCollector
MetricsCollector
implementation using Micrometer.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.rabbitmq.client.amqp.metrics.MetricsCollector
MetricsCollector.ConsumeDisposition, MetricsCollector.PublishDisposition
-
Constructor Summary
ConstructorDescriptionMicrometerMetricsCollector
(io.micrometer.core.instrument.MeterRegistry registry) MicrometerMetricsCollector
(io.micrometer.core.instrument.MeterRegistry registry, String prefix) MicrometerMetricsCollector
(io.micrometer.core.instrument.MeterRegistry registry, String prefix, Iterable<io.micrometer.core.instrument.Tag> tags) MicrometerMetricsCollector
(io.micrometer.core.instrument.MeterRegistry registry, String prefix, String... tags) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called when aConnection
is closed.void
Called when aConsumer
is closed.void
Called when aPublisher
is closed.void
consume()
void
consumeDisposition
(MetricsCollector.ConsumeDisposition disposition) void
Called when a newConnection
is opened.void
Called when a newConsumer
is opened.void
Called when a newPublisher
is opened.void
publish()
Called when aMessage
is published.void
publishDisposition
(MetricsCollector.PublishDisposition disposition) Called when aMessage
is settled by the broker.
-
Constructor Details
-
MicrometerMetricsCollector
public MicrometerMetricsCollector(io.micrometer.core.instrument.MeterRegistry registry) -
MicrometerMetricsCollector
public MicrometerMetricsCollector(io.micrometer.core.instrument.MeterRegistry registry, String prefix) -
MicrometerMetricsCollector
-
MicrometerMetricsCollector
-
-
Method Details
-
openConnection
public void openConnection()Description copied from interface:MetricsCollector
Called when a newConnection
is opened.- Specified by:
openConnection
in interfaceMetricsCollector
-
closeConnection
public void closeConnection()Description copied from interface:MetricsCollector
Called when aConnection
is closed.- Specified by:
closeConnection
in interfaceMetricsCollector
-
openPublisher
public void openPublisher()Description copied from interface:MetricsCollector
Called when a newPublisher
is opened.- Specified by:
openPublisher
in interfaceMetricsCollector
-
closePublisher
public void closePublisher()Description copied from interface:MetricsCollector
Called when aPublisher
is closed.- Specified by:
closePublisher
in interfaceMetricsCollector
-
openConsumer
public void openConsumer()Description copied from interface:MetricsCollector
Called when a newConsumer
is opened.- Specified by:
openConsumer
in interfaceMetricsCollector
-
closeConsumer
public void closeConsumer()Description copied from interface:MetricsCollector
Called when aConsumer
is closed.- Specified by:
closeConsumer
in interfaceMetricsCollector
-
publish
public void publish()Description copied from interface:MetricsCollector
Called when aMessage
is published.- Specified by:
publish
in interfaceMetricsCollector
-
publishDisposition
Description copied from interface:MetricsCollector
Called when aMessage
is settled by the broker.- Specified by:
publishDisposition
in interfaceMetricsCollector
- Parameters:
disposition
- disposition (outcome)
-
consume
public void consume()Description copied from interface:MetricsCollector
- Specified by:
consume
in interfaceMetricsCollector
-
consumeDisposition
Description copied from interface:MetricsCollector
- Specified by:
consumeDisposition
in interfaceMetricsCollector
- Parameters:
disposition
-
-