Skip to content

Commit

Permalink
move JFR metrics to experimental
Browse files Browse the repository at this point in the history
  • Loading branch information
roberttoyonaga committed Jun 16, 2023
1 parent 6a1e857 commit 70edf6e
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,45 @@ groups:
brief: "Number of buffers in the pool."
instrument: updowncounter
unit: "{buffer}"

- id: metric.process.runtime.jvm.cpu.monitor.duration
type: metric
metric_name: process.runtime.jvm.cpu.monitor.duration
brief: "Time monitor was used by a thread. Only available in JDK 17+."
instrument: histogram
unit: "s"
attributes:
- ref: thread.id
requirement_level: opt_in
- ref: code.namespace
requirement_level: opt_in
brief: Class of the monitor.
examples: [ "java.lang.Object" ]
- id: state
type: string
requirement_level: recommended
brief: Action taken at monitor.
examples: [ "blocked", "wait" ]

- id: metric.process.runtime.jvm.cpu.context_switch
type: metric
metric_name: process.runtime.jvm.context_switches
brief: "Number of context switches per second. Only available in JDK 17+."
instrument: updowncounter
unit: "Hz"

- id: metric.process.runtime.jvm.network.io
type: metric
metric_name: process.runtime.jvm.network.io
brief: "Bytes read/written by thread. Only available in JDK 17+."
extends: attributes.process.runtime.jvm.network
instrument: histogram
unit: "By"

- id: metric.process.runtime.jvm.network.duration
type: metric
metric_name: process.runtime.jvm.network.duration
brief: "Duration of network IO operation by thread. Only available in JDK 17+."
extends: attributes.process.runtime.jvm.network
instrument: histogram
unit: "s"
77 changes: 0 additions & 77 deletions semantic_conventions/metrics/process-runtime-jvm-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -144,80 +144,3 @@ groups:
[Reference](https://docs.oracle.com/en/java/javase/17/docs/api/jdk.management/com/sun/management/OperatingSystemMXBean.html#getProcessCpuLoad()).
instrument: gauge
unit: "1"

- id: attributes.process.runtime.jvm.buffer
type: attribute_group
brief: "Describes JVM buffer metric attributes."
attributes:
- ref: pool
brief: Name of the buffer pool.
examples: [ "mapped", "direct" ]
note: >
Pool names are generally obtained via
[BufferPoolMXBean#getName()](https://docs.oracle.com/en/java/javase/11/docs/api/java.management/java/lang/management/BufferPoolMXBean.html#getName()).
- id: metric.process.runtime.jvm.buffer.usage
type: metric
metric_name: process.runtime.jvm.buffer.usage
extends: attributes.process.runtime.jvm.buffer
brief: "Measure of memory used by buffers."
instrument: updowncounter
unit: "By"

- id: metric.process.runtime.jvm.buffer.limit
type: metric
metric_name: process.runtime.jvm.buffer.limit
extends: attributes.process.runtime.jvm.buffer
brief: "Measure of total memory capacity of buffers."
instrument: updowncounter
unit: "By"

- id: metric.process.runtime.jvm.buffer.count
type: metric
metric_name: process.runtime.jvm.buffer.count
extends: attributes.process.runtime.jvm.buffer
brief: "Number of buffers in the pool."
instrument: updowncounter
unit: "{buffer}"

- id: metric.process.runtime.jvm.cpu.monitor.duration
type: metric
metric_name: process.runtime.jvm.cpu.monitor.duration
brief: "Time monitor was used by a thread. Only available in JDK 17+."
instrument: histogram
unit: "s"
attributes:
- ref: thread.id
requirement_level: opt_in
- ref: code.namespace
requirement_level: opt_in
brief: Class of the monitor.
examples: [ "java.lang.Object" ]
- id: state
type: string
requirement_level: recommended
brief: Action taken at monitor.
examples: [ "blocked", "wait" ]

- id: metric.process.runtime.jvm.cpu.context_switch
type: metric
metric_name: process.runtime.jvm.context_switches
brief: "Number of context switches per second. Only available in JDK 17+."
instrument: updowncounter
unit: "Hz"

- id: metric.process.runtime.jvm.network.io
type: metric
metric_name: process.runtime.jvm.network.io
brief: "Bytes read/written by thread. Only available in JDK 17+."
extends: attributes.process.runtime.jvm.network
instrument: histogram
unit: "By"

- id: metric.process.runtime.jvm.network.duration
type: metric
metric_name: process.runtime.jvm.network.duration
brief: "Duration of network IO operation by thread. Only available in JDK 17+."
extends: attributes.process.runtime.jvm.network
instrument: histogram
unit: "s"

0 comments on commit 70edf6e

Please sign in to comment.