https://github.com/dragonzone/dropwizard-jmx
Enables JMX connectivity in Dropwizard
https://github.com/dragonzone/dropwizard-jmx
dropwizard java jmx
Last synced: 5 months ago
JSON representation
Enables JMX connectivity in Dropwizard
- Host: GitHub
- URL: https://github.com/dragonzone/dropwizard-jmx
- Owner: dragonzone
- License: mit
- Created: 2017-02-09T07:42:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T21:02:07.000Z (over 6 years ago)
- Last Synced: 2025-08-04T14:58:05.469Z (11 months ago)
- Topics: dropwizard, java, jmx
- Language: Java
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dropwizard JMX Integration [](https://jenkins.dragon.zone/blue/organizations/jenkins/dragonzone%2Fdropwizard-jmx/activity?branch=master) [](https://maven-badges.herokuapp.com/maven-central/zone.dragon.dropwizard/dropwizard-jmx/) [](http://www.javadoc.io/doc/zone.dragon.dropwizard/dropwizard-jmx)
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 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](https://hawt.io/) support