Open kes2464 opened 1 year ago
Also found the similar issue for thread count. (process.runtime.jvm.threads.count) Otel sends 2 metric for daemon and non-daemon, (label.daemon) and the Kibana query is the average of those 2.
Pinging @elastic/apm-ui (Team:APM)
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)
Kibana version: v 8.8.2
Elasticsearch version: v 8.8.2
Server OS version: CentOS Linux 7 (Core)
Browser version: Chrome
Browser OS version:
Original install method (e.g. download page, yum, from source, etc.):
Describe the bug: When Kibana loads otel memory metrics,
It runs a query similar to: (there are more filter queries, but for my app it wasn't really needed)
Elastic memory metrics have metrics for each pool (jvm.memory.heap.pool.used, jvm.memory.pool.heap.committed and jvm.memory.pool.heap.max) as well as total (jvm.memory.heap.used, jvm.memory.heap.committed and jvm.memory.heap.max)
While opentelemetry does not provide the total, and just send metrics for each pool which is distinguished by
labels.pool
. (process.runtime.jvm.memory.usage, process.runtime.jvm.memory.committed and process.runtime.jvm.memory.limit)So, the kibana query above is getting the avg of the pools rather than the sum.
Steps to reproduce:
Expected behavior: Should calculate the sum of all memory pools
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
Any additional context: