Home / Companies / Honeycomb / Blog / Post Details
Content Deep Dive

Integrating JMX and OpenTelemetry

Blog post from Honeycomb

Post Details
Company
Date Published
Author
Alex Boten
Word Count
1,798
Language
English
Hacker News Points
-
Summary

The OpenTelemetry community has effectively integrated Java Management Extensions (JMX) into its project to enhance observability by providing a standard way to monitor and manage Java applications. JMX exposes application metrics via management beans (MBeans), allowing for the collection of data regarding the application's state and the Java Virtual Machine. This integration utilizes YAML configuration files to translate application metrics into OpenTelemetry metrics, which can be automatically scraped using predefined rules for popular Java applications like Tomcat, Kafka, and Hadoop. Several methods are available for extracting JMX metrics: the JMX metrics scraper, the OpenTelemetry Java Agent, and the OpenTelemetry Collector, each offering varying levels of instrumentation and flexibility. The Collector, for instance, provides the ability to transform and enrich data without modifying the application environment, while custom rules can be configured to support applications not covered by defaults. This adaptability ensures seamless integration of JMX telemetry into existing telemetry pipelines using the most suitable tool for a given environment.