Class MetricsHandler
java.lang.Object
org.restheart.handlers.PipelinedHandler
org.restheart.mongodb.handlers.metrics.MetricsHandler
- All Implemented Interfaces:
io.undertow.server.HttpHandler
A handler for dropwizard.io metrics that can return both default metrics JSON
and the prometheus format.
- Author:
- Lena BrĂ¼der <brueder@e-spirit.com>, Christian Groth <groth@e-spirit.com>
-
Field Summary
Fields inherited from class org.restheart.handlers.PipelinedHandler
CONTENT_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidhandleRequest(io.undertow.server.HttpServerExchange exchange) Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
Constructor Details
-
MetricsHandler
public MetricsHandler() -
MetricsHandler
- Parameters:
next-
-
-
Method Details
-
handleRequest
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-