Class PrometheusScrapingHandler.PrometheusScrapingHandlerImpl

java.lang.Object
io.vertx.mutiny.micrometer.PrometheusScrapingHandler.PrometheusScrapingHandlerImpl
All Implemented Interfaces:
MutinyDelegate, PrometheusScrapingHandler
Enclosing interface:
PrometheusScrapingHandler

public static class PrometheusScrapingHandler.PrometheusScrapingHandlerImpl extends Object implements PrometheusScrapingHandler
  • Constructor Details

    • PrometheusScrapingHandlerImpl

      public PrometheusScrapingHandlerImpl(io.vertx.micrometer.PrometheusScrapingHandler delegate)
      Create a new instance of PrometheusScrapingHandler.PrometheusScrapingHandlerImpl delegating to the given (non-null) instance of PrometheusScrapingHandler.
  • Method Details

    • getDelegate

      public io.vertx.micrometer.PrometheusScrapingHandler getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Specified by:
      getDelegate in interface PrometheusScrapingHandler
      Returns:
      the delegate instance
    • create

      public static Consumer<RoutingContext> create()
      Creates a Vert.x Web Route handler for Prometheus metrics scraping. The default backend registry is used.
      Returns:
      a Route handler for the default backend registry
      See Also:
      • BackendRegistries#getDefaultNow()
    • create

      public static Consumer<RoutingContext> create(String registryName)
      Creates a Vert.x Web Route handler for Prometheus metrics scraping. The registry specified by registryName is used.
      Parameters:
      registryName - the backend metrics registry
      Returns:
      a Route handler for a specific metrics registry
      See Also:
      • BackendRegistries#getNow(String)
    • create

      public static Consumer<RoutingContext> create(io.micrometer.prometheusmetrics.PrometheusMeterRegistry registry)
      Creates a Vert.x Web Route handler for Prometheus metrics scraping. The registry specified by registry is used.
      Parameters:
      registry - the backend metrics registry
      Returns:
      a Route handler for a specific metrics registry