By using this site, you agree to the Privacy Policy and Terms of Use.
Accept
World of SoftwareWorld of SoftwareWorld of Software
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Search
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
Reading: Want to Have Successful OpenTelemetry Projects? Implement This One Tip | HackerNoon
Share
Sign In
Notification Show More
Font ResizerAa
World of SoftwareWorld of Software
Font ResizerAa
  • Software
  • Mobile
  • Computing
  • Gadget
  • Gaming
  • Videos
Search
  • News
  • Software
  • Mobile
  • Computing
  • Gaming
  • Videos
  • More
    • Gadget
    • Web Stories
    • Trending
    • Press Release
Have an existing account? Sign In
Follow US
  • Privacy
  • Terms
  • Advertise
  • Contact
Copyright © All Rights Reserved. World of Software.
World of Software > Computing > Want to Have Successful OpenTelemetry Projects? Implement This One Tip | HackerNoon
Computing

Want to Have Successful OpenTelemetry Projects? Implement This One Tip | HackerNoon

News Room
Last updated: 2026/04/04 at 12:06 PM
News Room Published 4 April 2026
Share
Want to Have Successful OpenTelemetry Projects? Implement This One Tip | HackerNoon
SHARE

Leading your organization to use OpenTelemetry is a challenge. In addition to all the usual project hurdles, you’ll face one of these two situations: convince your teams to use OpenTelemetry, or convince them to move from the telemetry tool they are already using to OpenTelemetry. Most people don’t want to change.

You’ll need lots of effort and baby steps. My tip is the following: the fewer the changes, the higher your chances of success. In this post, I want to tackle a real-world use case and describe which tools you can leverage to reduce the necessary changes.

The Context

Imagine a JVM application that already offers metrics via JMX. To be more precise, let’s take the example of a Spring Boot application running Tomcat embedded. Developers were supportive of the Ops team or were tasked to do Ops themselves.

They added the Spring Boot Actuator, as well as Micrometer JMX. A scheduled pipeline gets the metrics from JMX to a backend that ingests them.

During my previous talks on OpenTelemetry, I advised the audience to aim for the low-hanging fruit first. It means you should start with zero-code instrumentation. On the JVM, it translates to setting the OpenTelemetry Java Agent when launching the JVM. n

java -javaagent:opentelemetry-javaagent.jar -jar app.jar

It looks like an innocent change on an individual level. Yet, it may be the responsibility of another team, or even a team outside your direct control. Slight changes pile upon slight changes, and change management overhead compounds with each one. Hence, the fewer changes, the less time you have to spend on change management, and the higher your chances of success.

Why not leverage the existing JMX beans?

Integrating JMX in OpenTelemetry

A quick search of JMX and OpenTelemetry yields the JMX Receiver, which is deprecated. It points to the JMX Metric Gatherer, which is also deprecated. The state of the art, at the time of this writing, is the JMX Metric Scraper.

This utility provides a way to query JMX metrics and export them to an OTLP endpoint. The JMX MBeans and their metric mappings are defined in YAML and reuse implementation from jmx-metrics instrumentation.

— JMX Metric Scraper

Note that the scraper is only available as a JAR. It is, however, trivial to create a Docker image out of it. n

FROM eclipse-temurin:21-jre

ADD https://github.com/open-telemetry/opentelemetry-java-contrib/releases/latest/download/opentelemetry-jmx-scraper.jar 
    /opt/opentelemetry-jmx-scraper.jar

ENTRYPOINT ["java", "-jar", "/opt/opentelemetry-jmx-scraper.jar"]

While you can configure individual JMX bean values to scrape, the scraper provides config sets for a couple of common software systems that run on the JVM, e.g., Tomcat and Kafka. You can also provide your own config file for specific MXBeans. Here’s a sample custom config file: n

rules:
  - bean: "metrics:name=executor*,type=gauges"     # 1
    mapping:
      Value:
        metric: executor.gauge                     # 2
        type: gauge                                # 3
        unit: "{threads}"
        desc: Spring executor thread pool gauge
  1. JMX bean to map
  2. OpenTelemetry metric key
  3. Metric kind. See possible options here.

You can use it with the OTEL_JMX_CONFIGenvironment variable: n

services:
  jmx-gatherer:
    build: ./jmx-gatherer
    environment:
      OTEL_SERVICE_NAME: jmx-otel-showcase
      OTEL_JMX_SERVICE_URL: service:jmx:rmi:///jndi/rmi://app:9010/jmxrmi
      OTEL_JMX_TARGET_SYSTEM: jvm,tomcat                                       # 1
      OTEL_JMX_CONFIG: /etc/jmx/springboot.yaml                                # 2
  1. JMX presets
  2. Reference the custom config file

Putting it all Together

Here are the components of a starting architecture to display the application’s metrics:

  • JMX Metric Scraper
  • OpenTelemetry Collector
  • Prometheus
  • Grafana

Starting OpenTelemetry metrics architecture

The JMX Metric Scraper polls metrics from a JVM, using the JMX interface for this. It then pushes them to an OpenTelemetry Collector. For the demo, I chose a simple flow. The Collector exposes metrics in Prometheus format on an HTTP endpoint. A Prometheus instance polls them and exposes them for Grafana.

Grafana DashboardConclusion

In this post, I kept a JMX-enabled application as is and used the JMX Metric Scraper to send MBean metrics to the OpenTelemetry Collector.

Introducing OpenTelemetry in your information system doesn’t need more changes than necessary. You can, and you probably should, keep as much as possible of your existing assets to focus your efforts on the required parts. It’s always possible to change them at a later stage, when things are more stable. It might be time to nudge a bit toward a regular Java agent, with the influence of a migration that has been successful.

The complete source code for this post can be found on Codeberg.

To go further:

  • Micrometer JMX
  • JMX Metric Scraper

Originally published at A Java Geek on March 29th, 2026.

Sign Up For Daily Newsletter

Be keep up! Get the latest breaking news delivered straight to your inbox.
By signing up, you agree to our Terms of Use and acknowledge the data practices in our Privacy Policy. You may unsubscribe at any time.
Share This Article
Facebook Twitter Email Print
Share
What do you think?
Love0
Sad0
Happy0
Sleepy0
Angry0
Dead0
Wink0
Previous Article HBO Max: The 31 Absolute Best TV Shows to Watch HBO Max: The 31 Absolute Best TV Shows to Watch
Next Article How much will RAMageddon hike flagship prices? Top phone executive reveals the cost How much will RAMageddon hike flagship prices? Top phone executive reveals the cost
Leave a comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

248.1k Like
69.1k Follow
134k Pin
54.3k Follow

Latest News

Your AI Has Root Access to Your Life. You Just Don’t Know It Yet. | HackerNoon
Your AI Has Root Access to Your Life. You Just Don’t Know It Yet. | HackerNoon
Computing
Anthropic says Claude Code subscribers will need to pay extra for OpenClaw usage |  News
Anthropic says Claude Code subscribers will need to pay extra for OpenClaw usage | News
News
Best Amazon Big Spring Sale TV deal 2026: Over 0 off TCL 75-inch TV
Best Amazon Big Spring Sale TV deal 2026: Over $500 off TCL 75-inch TV
News
HNSE ASIA AI HARDWARE BATTLE 2025 with Green Funding · TechNode
HNSE ASIA AI HARDWARE BATTLE 2025 with Green Funding · TechNode
Computing

You Might also Like

Your AI Has Root Access to Your Life. You Just Don’t Know It Yet. | HackerNoon
Computing

Your AI Has Root Access to Your Life. You Just Don’t Know It Yet. | HackerNoon

4 Min Read
HNSE ASIA AI HARDWARE BATTLE 2025 with Green Funding · TechNode
Computing

HNSE ASIA AI HARDWARE BATTLE 2025 with Green Funding · TechNode

4 Min Read
How to Post on Instagram: Everything You Need to Know to Share Content
Computing

How to Post on Instagram: Everything You Need to Know to Share Content

9 Min Read
I Ran a Token Project for 3 Years. Here Is What Actually Happened. | HackerNoon
Computing

I Ran a Token Project for 3 Years. Here Is What Actually Happened. | HackerNoon

11 Min Read
//

World of Software is your one-stop website for the latest tech news and updates, follow us now to get the news that matters to you.

Quick Link

  • Privacy Policy
  • Terms of use
  • Advertise
  • Contact

Topics

  • Computing
  • Software
  • Press Release
  • Trending

Sign Up for Our Newsletter

Subscribe to our newsletter to get our newest articles instantly!

World of SoftwareWorld of Software
Follow US
Copyright © All Rights Reserved. World of Software.
Welcome Back!

Sign in to your account

Lost your password?