<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Hi Robert,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
> The idea is to phase out and improve over the JMX metrics gathering implementation.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
How would the implementation be improved?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
I think you can meet the requirements by implementing custom events using the jdk.jfr API. Such as solution can work on earlier JDK releases and you could design it (and modify it in the future) to suite your use case.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);" class="elementToProof">
Erik</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> hotspot-jfr-dev <hotspot-jfr-dev-retn@openjdk.org> on behalf of Robert Toyonaga <rtoyonag@redhat.com><br>
<b>Sent:</b> Wednesday, February 1, 2023 3:22 PM<br>
<b>To:</b> hotspot-jfr-dev@openjdk.org <hotspot-jfr-dev@openjdk.org><br>
<b>Subject:</b> OpenTelemetry and new JFR events</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div>Hello hotspot-jfr-dev! </div>
<div><br>
</div>
I'm Robert on the Java monitoring team at Red Hat. I've been working on building an
<a href="https://github.com/open-telemetry/opentelemetry-java-contrib/tree/main/jfr-streaming" data-auth="NotApplicable" data-loopstyle="link">
OpenTelemetry metrics gatherer using JFR</a>. The goal is to create an implementation that meets the OpenTelemetry
<a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/metrics/semantic_conventions/runtime-environment-metrics.md#jvm-metrics" data-auth="NotApplicable" data-loopstyle="link">
specification</a> outlining metrics related to the JVM. The idea is to phase out and improve over the JMX metrics gathering implementation. However, the set of existing JFR events is missing a few data points required to accomplish this. I've identified some
additions that will help to fill in the gaps <a href="https://docs.google.com/document/d/1oP8arX7FpZFnyA4nVi_k83eem7gh5w4_PJyPNZZFwRk/edit?usp=sharing" data-auth="NotApplicable" data-loopstyle="link" id="OWAd9ae478c-6920-0e06-84d2-b0f208112c6c" class="OWAAutoLink">
here</a>.<br>
<br>
If the changes seem reasonable, the first additions I'll try to make are jdk.SerialGCHeapSummary and jdk.CPULinuxLoadAverage. Please let me know what you think.<br>
<br>
Thank you!
<div>Robert Toyonaga</div>
</div>
</div>
</body>
</html>