Skip to content
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 jvm memory runtime metrics #2272

Merged
merged 8 commits into from
Jan 26, 2022
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,18 @@ consider, for example pthreads vs green thread implementations.

**Description:** Java Virtual Machine (JVM) metrics captured under `process.runtime.jvm.`

arminru marked this conversation as resolved.
Show resolved Hide resolved
| Name | Description | Units | Instrument Type | Value Type | Attribute Key | Attribute Values |
|------|-------------|-------|-----------------|------------|---------------|------------------|
| Name | Description | Unit | Unit ([UCUM](README.md#instrument-units)) | Instrument Type | Value Type | Attribute Key | Attribute Values |
|--------------------------------------|-------------------------------------|-------|-------------------------------------------|----------------------------|------------|---------------|------------------|
| process.runtime.jvm.memory.usage | Measure of memory used | Bytes | `By` | Asynchronous UpDownCounter | Int64 | type | heap, nonheap |
jack-berg marked this conversation as resolved.
Show resolved Hide resolved
| | | | | | | pool | Name of pool [1] |
| process.runtime.jvm.memory.init | Measure of initial memory requested | Bytes | `By` | Asynchronous UpDownCounter | Int64 | type | heap, nonheap |
| | | | | | | pool | Name of pool [1] |
| process.runtime.jvm.memory.committed | Measure of memory committed | Bytes | `By` | Asynchronous UpDownCounter | Int64 | type | heap, nonheap |
| | | | | | | pool | Name of pool [1] |
| process.runtime.jvm.memory.max | Measure of max obtainable memory | Bytes | `By` | Asynchronous UpDownCounter | Int64 | type | heap, nonheap |
| | | | | | | pool | Name of pool [1] |

**[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())
. Examples include `G1 Old Gen`, `G1 Eden space`, `G1 Survivor Space`
, `Metaspace`, etc.