From b7743dfdf064d212caaa956090114234ea968dbc Mon Sep 17 00:00:00 2001 From: Carlos Alberto Cortez Date: Fri, 22 Apr 2022 16:51:25 +0200 Subject: [PATCH] Update JVM metrics with JMX Gatherer values. (#2478) --- CHANGELOG.md | 3 +++ .../semantic_conventions/runtime-environment-metrics.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66411edbf75..4a5cbd50720 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,9 @@ release. ### Semantic Conventions +- Update JVM metrics with JMX Gatherer values + ([#2478](https://github.com/open-telemetry/opentelemetry-specification/pull/2478)) + ### Compatibility ### OpenTelemetry Protocol diff --git a/specification/metrics/semantic_conventions/runtime-environment-metrics.md b/specification/metrics/semantic_conventions/runtime-environment-metrics.md index f4125337e16..c08ce8986a1 100644 --- a/specification/metrics/semantic_conventions/runtime-environment-metrics.md +++ b/specification/metrics/semantic_conventions/runtime-environment-metrics.md @@ -67,6 +67,9 @@ All JVM metric attributes are required unless otherwise indicated. | | | | | | | pool | Name of pool [1] | | process.runtime.jvm.memory.max | Measure of max obtainable memory | Bytes | `By` | UpDownCounter | Int64 | type | `"heap"`, `"nonheap"` | | | | | | | | pool | Name of pool [1] | +| process.runtime.jvm.threads.count | Number of executing threads | threads | `{threads}` | UpDownCounter | Int64 | | | +| process.runtime.jvm.classes.loaded | Number of classes currently loaded | classes | `{classes}` | UpDownCounter | Int64 | | | +| process.runtime.jvm.classes.unloaded | Number of classes unloaded since JVM start | classes | `{classes}` | UpDownCounter | Int64 | | | **[1]**: Pool names are generally obtained via [MemoryPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/MemoryPoolMXBean.html#getName())