Dropwizard JMX Integration
![Javadoc](https://camo.githubusercontent.com/7f1c23f1d7a5fdec682bd5efcbdd6f8e409376a72ee0d890c3d1e59d7346c487/687474703a2f2f6a617661646f632d62616467652e61707073706f742e636f6d2f7a6f6e652e647261676f6e2e64726f7077697a6172642f64726f7077697a6172642d6a6d782e737667)
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 managementjminix
- A HTML interface and RESTful API for interacting with the MBeans registered via JMXjolokia
- 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
- Add MX4J support
- Figure out why JminiX isn't working on JDK11 https://github.com/lbovet/jminix/issues/15
- Add Hawt.io support