Class MetricsHandler
- java.lang.Object
-
- org.restheart.handlers.PipelinedHandler
-
- org.restheart.mongodb.handlers.metrics.MetricsHandler
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
public class MetricsHandler extends PipelinedHandler
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 Constructor Description MetricsHandler()MetricsHandler(PipelinedHandler next)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleRequest(io.undertow.server.HttpServerExchange exchange)-
Methods inherited from class org.restheart.handlers.PipelinedHandler
getNext, next, pipe, setNext
-
-
-
-
Constructor Detail
-
MetricsHandler
public MetricsHandler()
-
MetricsHandler
public MetricsHandler(PipelinedHandler next)
- Parameters:
next-
-
-
Method Detail
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Specified by:
handleRequestin classPipelinedHandler- Parameters:
exchange-- Throws:
Exception
-
-