-
Notifications
You must be signed in to change notification settings - Fork 867
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 runtime metrics for buffer pool #6177
add runtime metrics for buffer pool #6177
Conversation
Signed-off-by: Cuichen Li <[email protected]>
.../java/io/opentelemetry/instrumentation/javaagent/runtimemetrics/RuntimeMetricsInstaller.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Cuichen Li <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -38,6 +39,7 @@ public void afterAgent(Config config, AutoConfiguredOpenTelemetrySdk unused) { | |||
if (config.getBoolean( | |||
"otel.instrumentation.runtime-metrics.experimental-metrics.enabled", false)) { | |||
GarbageCollector.registerObservers(GlobalOpenTelemetry.get()); | |||
BufferPools.registerObservers(GlobalOpenTelemetry.get()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our process for adding these has been to discuss in the metrics JVM SIG, and codify in the runtime semantic conventions.
Are you able to attend the JVM metrics SIG?
If not, we should invite the participants to have a discussion here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, due to the time difference, i may not be able to attend the SIG meeting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i've requested JVM metrics folks to have a look at this PR
(also @cuichenli in case you didn't notice, the JVM metrics meetings are at alternating times to accommodate different timezones)
.buildWithCallback(callback(bufferBeans, BufferPoolMXBean::getMemoryUsed)); | ||
|
||
meter | ||
.upDownCounterBuilder("process.runtime.jvm.buffer.max") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use limit per naming conventinos.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
meter | ||
.upDownCounterBuilder("process.runtime.jvm.buffer.count") | ||
.setDescription("Total capacity of the buffers in this pool") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.setDescription("Total capacity of the buffers in this pool") | |
.setDescription("The number of buffers in the pool") |
See getCount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
Signed-off-by: Cuichen Li <[email protected]>
Signed-off-by: Cuichen Li <[email protected]>
fix #4876
Signed-off-by: Cuichen Li [email protected]