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 Details

    • NettyAllocatorMetrics

      public NettyAllocatorMetrics(String name, io.netty.buffer.ByteBufAllocatorMetricProvider allocator)
      Create a binder instance for the given allocator.
      Parameters:
      name - the unique name for the allocator
      allocator - the ByteBuf allocator to instrument
  • Method Details

    • bindTo

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