JMX for Dropwizard

Enables JMX endpoints for a Dropwizard application that allow JMX beans to be accessed externally

License

License

Categories

Categories

DropWizard Container Microservices
GroupId

GroupId

zone.dragon.dropwizard
ArtifactId

ArtifactId

dropwizard-jmx
Last Version

Last Version

1.0.15-54a18a
Release Date

Release Date

Type

Type

jar
Description

Description

JMX for Dropwizard
Enables JMX endpoints for a Dropwizard application that allow JMX beans to be accessed externally
Project URL

Project URL

https://github.com/dragonzone/dropwizard-jmx
Project Organization

Project Organization

DragonZone
Source Code Management

Source Code Management

https://github.com/dragonzone/dropwizard-jmx/tree/master

Download dropwizard-jmx

How to add to project

<!-- https://jarcasting.com/artifacts/zone.dragon.dropwizard/dropwizard-jmx/ -->
<dependency>
    <groupId>zone.dragon.dropwizard</groupId>
    <artifactId>dropwizard-jmx</artifactId>
    <version>1.0.15-54a18a</version>
</dependency>
// https://jarcasting.com/artifacts/zone.dragon.dropwizard/dropwizard-jmx/
implementation 'zone.dragon.dropwizard:dropwizard-jmx:1.0.15-54a18a'
// https://jarcasting.com/artifacts/zone.dragon.dropwizard/dropwizard-jmx/
implementation ("zone.dragon.dropwizard:dropwizard-jmx:1.0.15-54a18a")
'zone.dragon.dropwizard:dropwizard-jmx:jar:1.0.15-54a18a'
<dependency org="zone.dragon.dropwizard" name="dropwizard-jmx" rev="1.0.15-54a18a">
  <artifact name="dropwizard-jmx" type="jar" />
</dependency>
@Grapes(
@Grab(group='zone.dragon.dropwizard', module='dropwizard-jmx', version='1.0.15-54a18a')
)
libraryDependencies += "zone.dragon.dropwizard" % "dropwizard-jmx" % "1.0.15-54a18a"
[zone.dragon.dropwizard/dropwizard-jmx "1.0.15-54a18a"]

Dependencies

compile (13)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-annotations jar
com.google.guava : guava jar 24.1.1-jre
commons-lang : commons-lang jar 2.6
io.dropwizard : dropwizard-core jar
io.dropwizard : dropwizard-lifecycle jar
javax.servlet : javax.servlet-api jar
javax.validation : validation-api jar 1.1.0.Final
org.eclipse.jetty : jetty-jmx jar
org.eclipse.jetty : jetty-server jar
org.eclipse.jetty : jetty-util jar
org.jminix : jminix jar 1.2.0
org.jolokia : jolokia-core jar 1.3.5
org.slf4j : slf4j-api jar 1.7.26

provided (1)

Group / Artifact Type Version
org.projectlombok : lombok jar 1.18.10

test (4)

Group / Artifact Type Version
org.junit.jupiter : junit-jupiter-api jar 5.5.0
org.junit.jupiter : junit-jupiter-engine jar 5.5.0
org.assertj : assertj-core jar 3.12.2
io.dropwizard : dropwizard-testing jar

Project Modules

There are no modules declared in this project.

Dropwizard JMX Integration Build Status Maven Central Javadoc

This bundle enables JMX features for a dropwizard application. Currently supported implementations are

  • rmi - The standard java JMX-RMI agent, used by VisualVM and other tools to connect directly to remote management
  • jminix - A HTML interface and RESTful API for interacting with the MBeans registered via JMX
  • jolokia - A JSON REST API for interacting with the MBeans registered via JMX

To use this bundle, add it to your application in the initialize method:

@Override
public void initialize(Bootstrap<YourConfig> bootstrap) {
    bootstrap.addBundle(new JmxBundle<>(YourConfig::getJmxConfiguration));
}

Then, add configuration to tell the bundle which connectors to initialize and how to validate clients connecting to JMX:

jmx:
    authenticator:
        type: simpleUserPassword
        username: yourUsername
        password: yourPassword
     connectors:
       - type: rmi
         port: 9000
       - type: jolokia
         path: jolokia
       - type: jminix
         path: jminix

TODO

zone.dragon.dropwizard

Versions

Version
1.0.15-54a18a
1.0.14-0e652f