Replies: 1 comment
-
let's continue discussing in issue #9392 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to implement auto-instrumentation using JMX on a simple Java application. As I am following the documentation, I am able to write to a Rules file beans.
There is however, a bean I'm unable to emit a metric for:
Garbage Collector – LastGcInfo.memoryUsageBeforeGc
. It is also the case formemoryUsageAfterGc
.Here is what I write in the Rules file:
And here is the error I get:
[otel.javaagent 2023-09-05 17:38:04:233 +0300] [pool-5-thread-1] INFO io.opentelemetry.javaagent.shaded.instrumentation.jmx.engine.BeanAttributeExtractor - Unusable value javax.management.openmbean.TabularDataSupport for attribute LastGcInfo.memoryUsageBeforeGc and ObjectName java.lang:name=G1 Young Generation,type=GarbageCollector
I understand that
memoryUsageBeforeGc
is a structure of information stored inside a TabularType.My question is, how can I get those information in metrics through the Rules file? How should this bean be written if I want to extract the SimpleType
used
for instance?Beta Was this translation helpful? Give feedback.
All reactions