-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathjvm-metrics.yaml
More file actions
268 lines (253 loc) · 8.92 KB
/
jvm-metrics.yaml
File metadata and controls
268 lines (253 loc) · 8.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
groups:
- id: attributes.jvm.memory
type: attribute_group
brief: "Describes JVM memory metric attributes."
attributes:
- id: jvm.memory.type
stability: stable
type:
members:
- id: heap
stability: stable
value: "heap"
brief: "Heap memory."
- id: non_heap
stability: stable
value: "non_heap"
brief: "Non-heap memory"
- id: dont_generate
stability: stable
value: "dont_generate"
brief: "This member should not be code-generated."
annotations:
code_generation:
exclude: true
- id: deprecated
stability: stable
value: "deprecated"
brief: "This member is deprecated."
deprecated:
reason: obsoleted
note: "Use `heap` or `non_heap` instead."
- id: experimental
stability: development
value: "experimental"
brief: "This member is experimental."
requirement_level: recommended
brief: The type of memory.
examples: ["heap", "non_heap"]
- id: jvm.memory.pool.name
stability: stable
type: string
requirement_level: recommended
brief: Name of the memory pool.
examples: ["G1 Old Gen", "G1 Eden space", "G1 Survivor Space"]
note: >
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()).
- id: metric.jvm.memory.deprecated
type: metric
metric_name: jvm.memory.deprecated
brief: "Measure something deprecated."
instrument: updowncounter
unit: "By"
stability: stable
entity_associations:
- service
deprecated:
reason: obsoleted
note: "Use `metric.jvm.memory.used` instead."
- id: metric.jvm.memory.dont_generate
type: metric
metric_name: jvm.memory.dont_generate
brief: "Measure something that should not be code-generated."
instrument: updowncounter
unit: "By"
stability: stable
entity_associations:
- service
annotations:
code_generation:
exclude: true
- id: metric.jvm.memory.used
type: metric
metric_name: jvm.memory.used
extends: attributes.jvm.memory
brief: "Measure of memory used."
instrument: updowncounter
unit: "By"
metric_requirement_level: recommended
stability: stable
entity_associations:
- service
attributes:
- id: jvm.memory.deprecated.attribute
stability: stable
type: boolean
brief: "Something deprecated."
deprecated:
reason: obsoleted
note: "Use `jvm.memory.stable.attribute` instead."
requirement_level: recommended
- id: jvm.memory.experimental.attribute
stability: development
type: boolean
brief: "Something experimental."
requirement_level: opt_in
- id: jvm.memory.stable.attribute
stability: stable
type: boolean
brief: "Something stable."
requirement_level: recommended
- id: metric.jvm.memory.committed
type: metric
metric_name: jvm.memory.committed
extends: attributes.jvm.memory
brief: "Measure of memory committed."
instrument: updowncounter
unit: "By"
metric_requirement_level: recommended
stability: stable
- id: metric.jvm.memory.limit
type: metric
metric_name: jvm.memory.limit
extends: attributes.jvm.memory
brief: "Measure of max obtainable memory."
instrument: updowncounter
unit: "By"
metric_requirement_level: recommended
stability: stable
- id: metric.jvm.memory.used_after_last_gc
type: metric
metric_name: jvm.memory.used_after_last_gc
extends: attributes.jvm.memory
brief: "Measure of memory used, as measured after the most recent garbage collection event on this pool."
instrument: updowncounter
unit: "By"
metric_requirement_level: recommended
stability: stable
- id: metric.jvm.gc.duration
type: metric
metric_name: jvm.gc.duration
brief: "Duration of JVM garbage collection actions."
instrument: histogram
unit: "s"
metric_requirement_level: recommended
attributes:
- id: jvm.gc.name
stability: stable
type: string
requirement_level: recommended
brief: Name of the garbage collector.
examples: ["G1 Young Generation", "G1 Old Generation"]
note: >
Garbage collector name is generally obtained via
[GarbageCollectionNotificationInfo#getGcName()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcName()).
- id: jvm.gc.action
stability: stable
type: string
requirement_level: recommended
brief: Name of the garbage collector action.
examples: ["end of minor GC", "end of major GC"]
note: >
Garbage collector action is generally obtained via
[GarbageCollectionNotificationInfo#getGcAction()](https://docs.oracle.com/en/java/javase/11/docs/api/jdk.management/com/sun/management/GarbageCollectionNotificationInfo.html#getGcAction()).
stability: stable
- id: metric.jvm.thread.count
type: metric
metric_name: jvm.thread.count
brief: "Number of executing platform threads."
instrument: updowncounter
unit: "{thread}"
metric_requirement_level: recommended
attributes:
- id: jvm.thread.daemon
stability: stable
type: boolean
requirement_level: recommended
brief: "Whether the thread is daemon or not."
- id: jvm.thread.state
stability: stable
requirement_level: recommended
type:
members:
- id: new
stability: stable
value: "new"
brief: "A thread that has not yet started is in this state."
- id: runnable
stability: stable
value: "runnable"
brief: "A thread executing in the Java virtual machine is in this state."
- id: blocked
stability: stable
value: "blocked"
brief: "A thread that is blocked waiting for a monitor lock is in this state."
- id: waiting
stability: stable
value: "waiting"
brief: "A thread that is waiting indefinitely for another thread to perform a particular action is in this state."
- id: timed_waiting
stability: stable
value: "timed_waiting"
brief: "A thread that is waiting for another thread to perform an action for up to a specified waiting time is in this state."
- id: terminated
stability: stable
value: "terminated"
brief: "A thread that has exited is in this state."
brief: "State of the thread."
examples: ["runnable", "blocked"]
stability: stable
- id: metric.jvm.class.loaded
type: metric
metric_name: jvm.class.loaded
brief: "Number of classes loaded since JVM start."
instrument: counter
unit: "{class}"
metric_requirement_level: recommended
stability: stable
- id: metric.jvm.class.unloaded
type: metric
metric_name: jvm.class.unloaded
brief: "Number of classes unloaded since JVM start."
instrument: counter
unit: "{class}"
metric_requirement_level: recommended
stability: stable
- id: metric.jvm.class.count
type: metric
metric_name: jvm.class.count
brief: "Number of classes currently loaded."
instrument: updowncounter
unit: "{class}"
metric_requirement_level: recommended
stability: stable
- id: metric.jvm.cpu.count
type: metric
metric_name: jvm.cpu.count
brief: "Number of processors available to the Java virtual machine."
instrument: updowncounter
unit: "{cpu}"
metric_requirement_level: recommended
stability: stable
- id: metric.jvm.cpu.time
type: metric
metric_name: jvm.cpu.time
brief: "CPU time used by the process as reported by the JVM."
instrument: counter
unit: "s"
metric_requirement_level: recommended
stability: stable
- id: metric.jvm.cpu.recent_utilization
type: metric
metric_name: jvm.cpu.recent_utilization
brief: "Recent CPU utilization for the process as reported by the JVM."
note: >
The value range is [0.0,1.0].
This utilization is not defined as being for the specific interval since last measurement
(unlike `system.cpu.utilization`).
[Reference](https://docs.oracle.com/en/java/javase/17/docs/api/jdk.management/com/sun/management/OperatingSystemMXBean.html#getProcessCpuLoad()).
instrument: gauge
unit: "1"
metric_requirement_level: recommended
stability: stable