All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.micrometer.runtime.binder.netty.VertxNettyEventExecutorMetricsProvider Maven / Gradle / Ivy

Go to download

Instrument the runtime and your application with dimensional metrics using Micrometer.

There is a newer version: 3.17.5
Show newest version
package io.quarkus.micrometer.runtime.binder.netty;

import jakarta.enterprise.inject.Produces;
import jakarta.inject.Singleton;

import io.micrometer.core.instrument.binder.MeterBinder;
import io.micrometer.core.instrument.binder.netty4.NettyEventExecutorMetrics;
import io.vertx.core.Vertx;
import io.vertx.core.impl.VertxInternal;

@Singleton
public class VertxNettyEventExecutorMetricsProvider {

    @Produces
    @Singleton
    public MeterBinder vertxEventLoopGroupMetrics(Vertx vertx) {
        VertxInternal vi = (VertxInternal) vertx;
        return new NettyEventExecutorMetrics(vi.getEventLoopGroup());
    }

    @Produces
    @Singleton
    public MeterBinder vertxAcceptorEventLoopGroupMetrics(Vertx vertx) {
        VertxInternal vi = (VertxInternal) vertx;
        return new NettyEventExecutorMetrics(vi.getAcceptorEventLoopGroup());
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy