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>
  • Constructor Details

    • MetricsHandler

      public MetricsHandler()
    • MetricsHandler

      public MetricsHandler(PipelinedHandler next)
      Parameters:
      next -
  • Method Details

    • handleRequest

      public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws Exception
      Specified by:
      handleRequest in interface io.undertow.server.HttpHandler
      Specified by:
      handleRequest in class PipelinedHandler
      Parameters:
      exchange -
      Throws:
      Exception