User Tools

Site Tools


dropwizard

This is an old revision of the document!


Dropwizard

Metrics

The Metrics library is used to get an insight view into the running server.

Adding additional metrics

To add additional metrics a MetricRegistry is needed. It can be obtained during the bootstrap phase.

@Override
public void initialize(Bootstrap<PostalCodeConfiguration> bootstrap) {
    metricRegistry = bootstrap.getMetricRegistry();
}

dropwizard.1405506187.txt.gz · Last modified: 2014/07/16 10:23 by mihael