Class VertxMeterBinderAdapter

java.lang.Object
io.vertx.core.metrics.MetricsOptions
io.quarkus.micrometer.runtime.binder.vertx.VertxMeterBinderAdapter
All Implemented Interfaces:
io.quarkus.vertx.http.runtime.ExtendedQuarkusVertxHttpMetrics, io.vertx.core.metrics.Measured, io.vertx.core.spi.metrics.Metrics, io.vertx.core.spi.metrics.VertxMetrics, io.vertx.core.spi.VertxMetricsFactory, io.vertx.core.spi.VertxServiceProvider

public class VertxMeterBinderAdapter extends io.vertx.core.metrics.MetricsOptions implements io.vertx.core.spi.VertxMetricsFactory, io.vertx.core.spi.metrics.VertxMetrics, io.quarkus.vertx.http.runtime.ExtendedQuarkusVertxHttpMetrics
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.quarkus.vertx.http.runtime.ExtendedQuarkusVertxHttpMetrics

    io.quarkus.vertx.http.runtime.ExtendedQuarkusVertxHttpMetrics.ConnectionTracker
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class io.vertx.core.metrics.MetricsOptions

    DEFAULT_METRICS_ENABLED

    Fields inherited from interface io.quarkus.vertx.http.runtime.ExtendedQuarkusVertxHttpMetrics

    NOOP_CONNECTION_TRACKER

    Fields inherited from interface io.vertx.core.spi.metrics.Metrics

    DISABLE_METRICS_PROPERTY_NAME, METRICS_ENABLED
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.vertx.core.spi.metrics.ClientMetrics<?,?,?,?>
    createClientMetrics(io.vertx.core.net.SocketAddress remoteAddress, String type, String namespace)
     
    io.vertx.core.spi.metrics.DatagramSocketMetrics
    createDatagramSocketMetrics(io.vertx.core.datagram.DatagramSocketOptions options)
     
    io.vertx.core.spi.metrics.EventBusMetrics<?>
     
    io.vertx.core.spi.metrics.HttpClientMetrics<?,?,?,?>
    createHttpClientMetrics(io.vertx.core.http.HttpClientOptions options)
     
    io.vertx.core.spi.metrics.HttpServerMetrics<?,?,?>
    createHttpServerMetrics(io.vertx.core.http.HttpServerOptions options, io.vertx.core.net.SocketAddress localAddress)
     
    io.vertx.core.spi.metrics.TCPMetrics<?>
    createNetClientMetrics(io.vertx.core.net.NetClientOptions options)
     
    io.vertx.core.spi.metrics.TCPMetrics<?>
    createNetServerMetrics(io.vertx.core.net.NetServerOptions options, io.vertx.core.net.SocketAddress localAddress)
     
    io.vertx.core.spi.metrics.PoolMetrics<?>
    createPoolMetrics(String poolType, String poolName, int maxPoolSize)
     
    (package private) static String
    Extract the client name from the given metrics name.
    io.vertx.core.spi.VertxMetricsFactory
     
    io.quarkus.vertx.http.runtime.ExtendedQuarkusVertxHttpMetrics.ConnectionTracker
     
    (package private) void
    initBinder(HttpBinderConfiguration httpBinderConfiguration, OpenTelemetryContextUnwrapper openTelemetryContextUnwrapper)
     
    boolean
     
    io.vertx.core.spi.metrics.VertxMetrics
    metrics(io.vertx.core.VertxOptions vertxOptions)
     
    io.vertx.core.metrics.MetricsOptions
     

    Methods inherited from class io.vertx.core.metrics.MetricsOptions

    setEnabled, setFactory, toJson, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.vertx.core.metrics.Measured

    isMetricsEnabled

    Methods inherited from interface io.vertx.core.spi.metrics.Metrics

    close

    Methods inherited from interface io.vertx.core.spi.metrics.VertxMetrics

    vertxCreated

    Methods inherited from interface io.vertx.core.spi.VertxMetricsFactory

    init, newOptions, newOptions
  • Field Details

  • Constructor Details

    • VertxMeterBinderAdapter

      public VertxMeterBinderAdapter()
  • Method Details

    • initBinder

      void initBinder(HttpBinderConfiguration httpBinderConfiguration, OpenTelemetryContextUnwrapper openTelemetryContextUnwrapper)
    • isEnabled

      public boolean isEnabled()
      Overrides:
      isEnabled in class io.vertx.core.metrics.MetricsOptions
    • getFactory

      public io.vertx.core.spi.VertxMetricsFactory getFactory()
      Overrides:
      getFactory in class io.vertx.core.metrics.MetricsOptions
    • metrics

      public io.vertx.core.spi.metrics.VertxMetrics metrics(io.vertx.core.VertxOptions vertxOptions)
      Specified by:
      metrics in interface io.vertx.core.spi.VertxMetricsFactory
    • newOptions

      public io.vertx.core.metrics.MetricsOptions newOptions()
      Specified by:
      newOptions in interface io.vertx.core.spi.VertxMetricsFactory
    • createHttpServerMetrics

      public io.vertx.core.spi.metrics.HttpServerMetrics<?,?,?> createHttpServerMetrics(io.vertx.core.http.HttpServerOptions options, io.vertx.core.net.SocketAddress localAddress)
      Specified by:
      createHttpServerMetrics in interface io.vertx.core.spi.metrics.VertxMetrics
    • createHttpClientMetrics

      public io.vertx.core.spi.metrics.HttpClientMetrics<?,?,?,?> createHttpClientMetrics(io.vertx.core.http.HttpClientOptions options)
      Specified by:
      createHttpClientMetrics in interface io.vertx.core.spi.metrics.VertxMetrics
    • createNetServerMetrics

      public io.vertx.core.spi.metrics.TCPMetrics<?> createNetServerMetrics(io.vertx.core.net.NetServerOptions options, io.vertx.core.net.SocketAddress localAddress)
      Specified by:
      createNetServerMetrics in interface io.vertx.core.spi.metrics.VertxMetrics
    • createNetClientMetrics

      public io.vertx.core.spi.metrics.TCPMetrics<?> createNetClientMetrics(io.vertx.core.net.NetClientOptions options)
      Specified by:
      createNetClientMetrics in interface io.vertx.core.spi.metrics.VertxMetrics
    • createClientMetrics

      public io.vertx.core.spi.metrics.ClientMetrics<?,?,?,?> createClientMetrics(io.vertx.core.net.SocketAddress remoteAddress, String type, String namespace)
      Specified by:
      createClientMetrics in interface io.vertx.core.spi.metrics.VertxMetrics
    • createPoolMetrics

      public io.vertx.core.spi.metrics.PoolMetrics<?> createPoolMetrics(String poolType, String poolName, int maxPoolSize)
      Specified by:
      createPoolMetrics in interface io.vertx.core.spi.metrics.VertxMetrics
    • createDatagramSocketMetrics

      public io.vertx.core.spi.metrics.DatagramSocketMetrics createDatagramSocketMetrics(io.vertx.core.datagram.DatagramSocketOptions options)
      Specified by:
      createDatagramSocketMetrics in interface io.vertx.core.spi.metrics.VertxMetrics
    • createEventBusMetrics

      public io.vertx.core.spi.metrics.EventBusMetrics<?> createEventBusMetrics()
      Specified by:
      createEventBusMetrics in interface io.vertx.core.spi.metrics.VertxMetrics
    • extractClientName

      static String extractClientName(String mn)
      Extract the client name from the given metrics name. This method applies a convention to be able to extract the client name and the client name from the string returned by ClientOptionsBase.getMetricsName().

      The convention is the following: prefix|client name. The choice of | has been done to avoid separator commonly used in metrics name such as _, ., or -.

      Parameters:
      mn - the metric name
      Returns:
      the client name if the passed string follows the convention, null otherwise.
    • getHttpConnectionTracker

      public io.quarkus.vertx.http.runtime.ExtendedQuarkusVertxHttpMetrics.ConnectionTracker getHttpConnectionTracker()
      Specified by:
      getHttpConnectionTracker in interface io.quarkus.vertx.http.runtime.ExtendedQuarkusVertxHttpMetrics