Simple Kafka Monitor using OpenDMK (JMX 2.0)

JMX 2.0 was released as the "OpenDMK" open source project prior to the Sun/Oracle merger ( https://opendmk.java.net/ ). JMX 1.0 evolved around management of a single java JVM and JMX 2.0 is designed for enterprise management of hundreds of java virtual machines across

JMX 2.0 was released as the "OpenDMK" open source project prior to the Sun/Oracle merger ( https://opendmk.java.net/ ). JMX 1.0 evolved around management of a single java JVM and JMX 2.0 is designed for enterprise management of hundreds of java virtual machines across multiple servers.





This design is a refinement of a mini-AWS-style payment system I wrote in 2011 which had 18 components such as Registry, Server, Monitor, Datasource, etc. That MCC project used a swing-based JMX client, this project is the corresponding JMX server. I'm using it with Kafka but it's generically applicable to any JMX application.





Kafka is a natural candidate for JMX 2.0 and in this monitor I use two components, OpenDMK and Jolokia (https://jolokia.org/ ). There's three java classes (250 lines of code) and some javascript code. It's fast, simple and easy to maintain, unlike most of the current Kafka monitors which require Play/Akka/Scala/SBT knowledge.

Source Code





The JMX 2.0 cascading server virtualizes and aggregates the mbeans of each Kafka server and the Zookeeper server. The jolokia server then transforms the cascaded beans into a JSON output, which is easily massaged to display relevant information.

Recent Posts

Flickr Stream

Text Widget

Aliquam eget arcu nec nisl imperdiet semper mollis sit amet tortor. Ut ultrices pharetra urna id cursus. Aenean ligula dolor, mollis id eros id, hendrerit malesuada nisi. Suspendisse et pellentesque est. In lobortis velit nec diam sodales, vel gravida nibh porta. Curabitur faucibus lacus ac tellus faucibus posuere. Nam lobortis