Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Java Flight Recorder based instrumentation as an alternative to MX Bean instrumentation. #832

Open
claytonwohl opened this issue Dec 19, 2022 · 1 comment

Comments

@claytonwohl
Copy link

The simpleclient_hotspot library observes metrics about Java applications using Java's old MX bean architecture (JMX). Java versions 14+ offer a newer better way to observe these types of metrics about running Java applications: Java Flight Recorder (JFR) Event Streaming.

The Prometheus Java library should continue offering the JMX-based simpleclient_hotspot for applications running older versions of Java, such as Java 11, but should add a newer alternative, simpleclient_jfr (or something similar) that is based on the newer architecture for applications running Java 17+. Ideally, make this new option JPMS friendly with a module-info.java so end-applications can use jlink packaging which requires dependency libraries to have module-info.java defined.

@fstab
Copy link
Member

fstab commented Dec 23, 2022

Awesome idea, thanks a lot.

I am working on a new release that will be compatible with the module system.

However, I didn't find the time to look into JFR metrics yet. If you like to contribute please comment here how you think client_java's JFR monitoring should look like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants