Package com.rabbitmq.stream.metrics
Class MicrometerMetricsCollector
java.lang.Object
com.rabbitmq.stream.metrics.MicrometerMetricsCollector
- All Implemented Interfaces:
MetricsCollector
-
Field Summary
Modifier and TypeFieldDescriptionprotected final io.micrometer.core.instrument.DistributionSummary
-
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
chunk
(int entriesCount) void
void
consume
(long count) protected io.micrometer.core.instrument.Counter
createChunkCounter
(io.micrometer.core.instrument.MeterRegistry registry, String prefix, Iterable<io.micrometer.core.instrument.Tag> tags) protected io.micrometer.core.instrument.DistributionSummary
createChunkSizeDistributionSummary
(io.micrometer.core.instrument.MeterRegistry registry, String prefix, Iterable<io.micrometer.core.instrument.Tag> tags) void
void
publish
(int count) void
publishConfirm
(int count) void
publishError
(int count) void
readBytes
(int readBytes) void
writtenBytes
(int writtenBytes)
-
Field Details
-
chunkSize
protected final io.micrometer.core.instrument.DistributionSummary chunkSize
-
-
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
-
createChunkCounter
-
createChunkSizeDistributionSummary
-
openConnection
public void openConnection()- Specified by:
openConnection
in interfaceMetricsCollector
-
closeConnection
public void closeConnection()- Specified by:
closeConnection
in interfaceMetricsCollector
-
publish
public void publish(int count) - Specified by:
publish
in interfaceMetricsCollector
-
publishConfirm
public void publishConfirm(int count) - Specified by:
publishConfirm
in interfaceMetricsCollector
-
publishError
public void publishError(int count) - Specified by:
publishError
in interfaceMetricsCollector
-
chunk
public void chunk(int entriesCount) - Specified by:
chunk
in interfaceMetricsCollector
-
consume
public void consume(long count) - Specified by:
consume
in interfaceMetricsCollector
-
writtenBytes
public void writtenBytes(int writtenBytes) - Specified by:
writtenBytes
in interfaceMetricsCollector
-
readBytes
public void readBytes(int readBytes) - Specified by:
readBytes
in interfaceMetricsCollector
-