Package ratpack.dropwizard.metrics
Class MetricsPrometheusHandler
- java.lang.Object
-
- ratpack.dropwizard.metrics.MetricsPrometheusHandler
-
- All Implemented Interfaces:
ratpack.handling.Handler
public class MetricsPrometheusHandler extends java.lang.Object implements ratpack.handling.HandlerA Handler that exposes metric reports in Prometheus format.This handler should be bound to an application path, and most likely only for the GET method…
import ratpack.dropwizard.metrics.MetricsPrometheusHandler; import static org.junit.Assert.*; assertTrue(chain instanceof ratpack.handling.Chain); chain.get("admin/metrics", new MetricsPrometheusHandler());- Since:
- 1.6
-
-
Constructor Summary
Constructors Constructor Description MetricsPrometheusHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandle(ratpack.handling.Context ctx)
-