Class PrometheusRequestHandler.PrometheusRequestHandlerImpl

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

public static class PrometheusRequestHandler.PrometheusRequestHandlerImpl extends Object implements PrometheusRequestHandler
  • Constructor Details

    • PrometheusRequestHandlerImpl

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

    • getDelegate

      public io.vertx.micrometer.PrometheusRequestHandler 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 PrometheusRequestHandler
      Returns:
      the delegate instance
    • create

      public static Consumer<HttpServerRequest> create(io.micrometer.prometheusmetrics.PrometheusMeterRegistry registry, String metricsEndpoint)
      Creates a handler with the specified PrometheusMeterRegistry and metrics endpoint.

      This handler scrapes metrics from the given PrometheusMeterRegistry and serves them at the specified endpoint.

      Parameters:
      registry - the PrometheusMeterRegistry to use for scraping metrics
      metricsEndpoint - the endpoint to expose metrics
      Returns:
      a handler for scraping Prometheus metrics
    • create

      public static Consumer<HttpServerRequest> create(io.micrometer.prometheusmetrics.PrometheusMeterRegistry registry)
      Creates a handler with the specified PrometheusMeterRegistry and the default metrics endpoint ("/metrics").

      This handler scrapes metrics from the given PrometheusMeterRegistry and serves them at the default endpoint "/metrics".

      Parameters:
      registry - the PrometheusMeterRegistry to use for scraping metrics
      Returns:
      a handler for scraping Prometheus metrics
    • create

      public static Consumer<HttpServerRequest> create()
      Creates a handler with a new PrometheusMeterRegistry and the default metrics endpoint ("/metrics").

      This handler scrapes metrics from a newly created PrometheusMeterRegistry and serves them at the default endpoint "/metrics".

      Returns:
      a handler for scraping Prometheus metrics