Package io.vertx.mutiny.micrometer
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vertx.mutiny.micrometer.PrometheusRequestHandler
PrometheusRequestHandler.PrometheusRequestHandlerImpl -
Constructor Summary
ConstructorsConstructorDescriptionPrometheusRequestHandlerImpl(io.vertx.micrometer.PrometheusRequestHandler delegate) Create a new instance ofPrometheusRequestHandler.PrometheusRequestHandlerImpldelegating to the given (non-null) instance ofPrometheusRequestHandler. -
Method Summary
Modifier and TypeMethodDescriptionstatic Consumer<HttpServerRequest>create()Creates a handler with a new PrometheusMeterRegistry and the default metrics endpoint ("/metrics").static Consumer<HttpServerRequest>create(io.micrometer.prometheusmetrics.PrometheusMeterRegistry registry) Creates a handler with the specified PrometheusMeterRegistry and the default metrics endpoint ("/metrics").static Consumer<HttpServerRequest>Creates a handler with the specified PrometheusMeterRegistry and metrics endpoint.io.vertx.micrometer.PrometheusRequestHandlerGet the delegate instance.
-
Constructor Details
-
PrometheusRequestHandlerImpl
public PrometheusRequestHandlerImpl(io.vertx.micrometer.PrometheusRequestHandler delegate) Create a new instance ofPrometheusRequestHandler.PrometheusRequestHandlerImpldelegating to the given (non-null) instance ofPrometheusRequestHandler.
-
-
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:
getDelegatein interfaceMutinyDelegate- Specified by:
getDelegatein interfacePrometheusRequestHandler- 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 metricsmetricsEndpoint- 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
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
-