public class PrometheusBundle
extends java.lang.Object
implements io.dropwizard.Bundle, javax.ws.rs.container.DynamicFeature
To activate the bundle, there is a builder()
to be used in the initialize
method:
public void initialize(final Bootstrap<AppConfig> bootstrap) {
// ...
bootstrap.addBundle(PrometheusBundle.builder().withPrometheusConfigProvider(AppConfig::getPrometheus).build());
// ...
}
Modifier and Type | Class and Description |
---|---|
static class |
PrometheusBundle.Builder |
static interface |
PrometheusBundle.InitialBuilder |
Modifier and Type | Method and Description |
---|---|
static PrometheusBundle.InitialBuilder |
builder() |
void |
configure(javax.ws.rs.container.ResourceInfo resourceInfo,
javax.ws.rs.core.FeatureContext context) |
void |
initialize(io.dropwizard.setup.Bootstrap<?> bootstrap) |
void |
run(io.dropwizard.setup.Environment environment) |
public void run(io.dropwizard.setup.Environment environment)
run
in interface io.dropwizard.Bundle
public void configure(javax.ws.rs.container.ResourceInfo resourceInfo, javax.ws.rs.core.FeatureContext context)
configure
in interface javax.ws.rs.container.DynamicFeature
public void initialize(io.dropwizard.setup.Bootstrap<?> bootstrap)
initialize
in interface io.dropwizard.ConfiguredBundle<io.dropwizard.Configuration>
public static PrometheusBundle.InitialBuilder builder()