Skip to content
Admin dashboard for Dropwizard Metrics.
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
media Updated screenshot. Nov 16, 2018
src/main Updated version to 1.1-SNAPSHOT. Nov 18, 2018
.gitignore Added a Bundle that automatically registers the servlet. Oct 15, 2018
.travis.yml Added Travis CI descriptor. Oct 15, 2018
LICENSE Initial commit Oct 5, 2018
README.md Fixed build. Nov 18, 2018
pom.xml Updated version to 1.1-SNAPSHOT. Nov 18, 2018

README.md

Dropwizard Metrics UI

Build Status Maven Central License

Dropwizard Metrics UI is a Dropwizard Bundle that exposes the registered Dropwizard Metrics and displays its core metrics in a dashboard.

Usage

Just add the following dependency to your pom.xml:

<dependency>
    <groupId>org.marmelo.dropwizard</groupId>
    <artifactId>dropwizard-metrics-ui</artifactId>
    <version>1.0</version>
</dependency>

And then register the MetricsUIBundle to your Dropwizard application inside the Application#initialize method:

@Override
public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap) {
    bootstrap.addBundle(new MetricsUIBundle());
}

By default it will be available through the administrative environment at http://localhost:8081/admin/.

Advanced Usage

The Dropwizard Metrics UI leverages the already available Dropwizard Metrics REST endpoints and can only be deployed together in the same environment (usually the administrative environment).

You may override the default /admin path through the MetricsUIBundle constructor:

@Override
public void initialize(Bootstrap<HelloWorldConfiguration> bootstrap) {
    bootstrap.addBundle(new MetricsUIBundle("/dashboard/*"));
}

If you want full customization power you may register the underlying MetricsUIServlet servlet manually:

@Override
public void run(Environment environment) {
    environment.admin()
            .addServlet("Dropwizard Metrics UI", new MetricsUIServlet())
            .addMapping("/admin/*");
}

Support

Please file bug reports and feature requests in GitHub issues.

License

Copyright (c) 2018 Rafael Marmelo

This library is licensed under the MIT License.

You can’t perform that action at this time.