Closed simitt closed 1 year ago
Pinging @elastic/apm-ui (Team:apm)
@simitt we use jvm.gc.count
and jvm.gc.time
fields, so without the runtime.
prefix. Can you verify whether those are collected as well?
The reason these aren't showing up is because the Elastic APM Java agent uses cumulative values for jvm.gc.count
and jvm.gc.time
, and the OpenTelemetry metrics appear to use instantaneous values.
In the APM UI we use a derivative aggregation and assume these are cumulative values: https://github.com/elastic/kibana/blob/529b155d1c97d5a773a8eed25bec545a483ee80d/x-pack/plugins/apm/server/lib/metrics/by_agent/java/gc/fetch_and_transform_gc_metrics.ts#L78-L106
Note also that values are not collected for CPU and thread count when using OpenTelemetry.
We're not going to get this into 7.14 so I'm going to move this issue to the backlog for now. We can make some adjustments on what we show on this page based on the agent name, and we might need some support in the agent or server .
AFAICS the opentelemetry-java-instrumentation code is using the same method as the Elastic APM agent:
@smith what led you to believe one is instantaneous and one is cumulative? Is there some data you can point me to?
@axw I think @dgieselaar mentioned this as a possibility. In this case I guess I don't have an explanation as to why the don't show up but they do not.
I think that was Oliver. My only guess would be the fields are different.
On Tue, Jul 27, 2021, 05:25 Nathan L Smith @.***> wrote:
@axw https://github.com/axw I think @dgieselaar https://github.com/dgieselaar mentioned this as a possibility. In this case I guess I don't have an explanation as to why the don't show up but they do not.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/elastic/kibana/issues/105923#issuecomment-887178340, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACWDXHH66QA47CJNR36RZDTZYRLBANCNFSM5APELFBQ .
Not relevant anymore with the fix in https://github.com/elastic/kibana/pull/151826
Kibana version: 7.14.0-BC2
Describe the bug: OpenTelemetry collected JVM garbage collection metrics are not visualized. Note that the
agent.name
isopentelemetry/java
.See more detailed bug report in https://github.com/elastic/apm-server/pull/5309#issuecomment-881246909
Steps to reproduce:
Expected behavior: GC graphs should be populated.