OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.15k stars 590 forks source link

add JVM metrics to MP Telemetry 2.0 #28689

Closed donbourne closed 2 months ago

donbourne commented 3 months ago

As described in the MP Telemetry 2.0 spec, we are required to have a specific set of JVM metrics.

we should be able to use the JVM metrics from here. @fmhwong did some investigation to show that that implementation satisfies the requirements of the semantic conventions for JVM metrics and works on OpenJ9 (I believe it's also been tested with HotSpot).

benjamin-confino commented 3 months ago

I've created a PR here https://github.com/tonyreigns/open-liberty/pull/222 - it goes directly into Tony's branch to avoid a merge conflict down the line.

fmhwong commented 3 months ago

From this code, it looks like the library supports both J9 and Hotspot JVM. All tests I performed were on J9 only.

donbourne commented 2 months ago

function provided in #28809