Skip to content

Commit d7b7ab4

Browse files
committed
describe JVM CPU metrics
1 parent 3bb601c commit d7b7ab4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

semantic_conventions/metrics/process-runtime-jvm-metrics.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,10 @@ groups:
127127
metric_name: process.runtime.jvm.cpu.utilization
128128
brief: "Recent CPU utilization for the process."
129129
note: >
130+
The value range is [0,1].
130131
This utilization is not defined as being for the specific interval since last measurement
131132
(unlike `system.cpu.utilization`).
133+
[Reference](https://docs.oracle.com/en/java/javase/17/docs/api/jdk.management/com/sun/management/OperatingSystemMXBean.html#getProcessCpuLoad()).
132134
instrument: gauge
133135
unit: "1"
134136

@@ -137,15 +139,22 @@ groups:
137139
metric_name: process.runtime.jvm.system.cpu.utilization
138140
brief: "Recent CPU utilization for the whole system."
139141
note: >
142+
The value range is [0,1].
140143
This utilization is not defined as being for the specific interval since last measurement
141144
(unlike `system.cpu.utilization`).
145+
[Reference](https://docs.oracle.com/en/java/javase/17/docs/api/jdk.management/com/sun/management/OperatingSystemMXBean.html#getCpuLoad()).
142146
instrument: gauge
143147
unit: "1"
144148

145149
- id: metric.process.runtime.jvm.system.cpu.load_1m
146150
type: metric
147151
metric_name: process.runtime.jvm.system.cpu.load_1m
148152
brief: "Average CPU load of the whole system for the last minute."
153+
note: >
154+
The value range is [0,n], where n is the number of CPU cores.
155+
This utilization is not defined as being for the specific interval since last measurement
156+
(unlike `system.cpu.utilization`).
157+
[Reference](https://docs.oracle.com/en/java/javase/17/docs/api/java.management/java/lang/management/OperatingSystemMXBean.html#getSystemLoadAverage()).
149158
instrument: gauge
150159
unit: "1"
151160

0 commit comments

Comments
 (0)