Class NettyAllocatorMetrics
java.lang.Object
io.quarkus.micrometer.runtime.binder.netty.NettyAllocatorMetrics
- All Implemented Interfaces:
io.micrometer.core.instrument.binder.MeterBinder
public class NettyAllocatorMetrics
extends Object
implements io.micrometer.core.instrument.binder.MeterBinder
MeterBinder for Netty memory allocators.
This class is based on the MicroMeter NettyAllocatorMetrics class, but remove the "id" from the tags are it's
computed from the `hashCode` which does not allow aggregation across processed.
Instead, it gets a name label indicating an unique name for the allocator.
-
Constructor Summary
ConstructorsConstructorDescriptionNettyAllocatorMetrics(String name, io.netty.buffer.ByteBufAllocatorMetricProvider allocator) Create a binder instance for the given allocator. -
Method Summary
Modifier and TypeMethodDescriptionvoidbindTo(io.micrometer.core.instrument.MeterRegistry registry)
-
Constructor Details
-
NettyAllocatorMetrics
Create a binder instance for the given allocator.- Parameters:
name- the unique name for the allocatorallocator- theByteBufallocator to instrument
-
-
Method Details
-
bindTo
public void bindTo(io.micrometer.core.instrument.MeterRegistry registry) - Specified by:
bindToin interfaceio.micrometer.core.instrument.binder.MeterBinder
-