public class MetricsPrometheusHandler extends java.lang.Object implements Handler
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());
Constructor and Description |
---|
MetricsPrometheusHandler() |
Modifier and Type | Method and Description |
---|---|
void |
handle(Context ctx)
Handles the context.
|
public void handle(Context ctx) throws java.lang.Exception
Handler
handle
in interface Handler
ctx
- The context to handlejava.lang.Exception
- if anything goes wrong (exception will be implicitly passed to the context's Context.error(Throwable)
method)