Class MicrometerMetricsCollector
java.lang.Object
com.rabbitmq.stream.metrics.MicrometerMetricsCollector
- All Implemented Interfaces:
MetricsCollector
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.micrometer.core.instrument.DistributionSummary -
Constructor Summary
ConstructorsConstructorDescriptionMicrometerMetricsCollector(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 TypeMethodDescriptionvoidchunk(int entriesCount) voidvoidconsume(long count) protected io.micrometer.core.instrument.CountercreateChunkCounter(io.micrometer.core.instrument.MeterRegistry registry, String prefix, Iterable<io.micrometer.core.instrument.Tag> tags) protected io.micrometer.core.instrument.DistributionSummarycreateChunkSizeDistributionSummary(io.micrometer.core.instrument.MeterRegistry registry, String prefix, Iterable<io.micrometer.core.instrument.Tag> tags) voidvoidpublish(int count) voidpublishConfirm(int count) voidpublishError(int count) voidreadBytes(int readBytes) voidwrittenBytes(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:
openConnectionin interfaceMetricsCollector
-
closeConnection
public void closeConnection()- Specified by:
closeConnectionin interfaceMetricsCollector
-
publish
public void publish(int count) - Specified by:
publishin interfaceMetricsCollector
-
publishConfirm
public void publishConfirm(int count) - Specified by:
publishConfirmin interfaceMetricsCollector
-
publishError
public void publishError(int count) - Specified by:
publishErrorin interfaceMetricsCollector
-
chunk
public void chunk(int entriesCount) - Specified by:
chunkin interfaceMetricsCollector
-
consume
public void consume(long count) - Specified by:
consumein interfaceMetricsCollector
-
writtenBytes
public void writtenBytes(int writtenBytes) - Specified by:
writtenBytesin interfaceMetricsCollector
-
readBytes
public void readBytes(int readBytes) - Specified by:
readBytesin interfaceMetricsCollector
-