|
| 1 | +--- |
| 2 | + |
| 3 | +rules: |
| 4 | + |
| 5 | + - bean: java.lang:type=MemoryPool,name=* |
| 6 | + prefix: jvm.memory. |
| 7 | + type: updowncounter |
| 8 | + unit: By |
| 9 | + metricAttribute: |
| 10 | + jvm.memory.pool.name: param(name) |
| 11 | + jvm.memory.type: lowercase(beanattr(Type)) |
| 12 | + mapping: |
| 13 | + # jvm.memory.used |
| 14 | + Usage.used: |
| 15 | + metric: used |
| 16 | + desc: Measure of memory used. |
| 17 | + # jvm.memory.committed |
| 18 | + Usage.committed: |
| 19 | + metric: committed |
| 20 | + desc: Measure of memory committed. |
| 21 | + # jvm.memory.limit |
| 22 | + Usage.max: |
| 23 | + metric: limit |
| 24 | + desc: Measure of max obtainable memory. |
| 25 | + # jvm.memory.init (experimental) |
| 26 | + Usage.init: |
| 27 | + metric: init |
| 28 | + desc: Measure of initial memory requested. |
| 29 | + # jvm.memory.used_after_last_gc |
| 30 | + # note: metric attribute "jvm.memory.type" will always be "heap" as GC only manages heap |
| 31 | + CollectionUsage.used: |
| 32 | + metric: used_after_last_gc |
| 33 | + desc: Measure of memory used, as measured after the most recent garbage collection event on this pool. |
| 34 | + |
| 35 | + - bean: java.lang:type=Threading |
| 36 | + prefix: jvm.thread. |
| 37 | + mapping: |
| 38 | + # jvm.thread.count |
| 39 | + # limitation: 'jvm.thread.daemon' and 'jvm.thread.state' metric attributes are not provided |
| 40 | + ThreadCount: |
| 41 | + metric: count |
| 42 | + type: updowncounter |
| 43 | + unit: "{thread}" |
| 44 | + desc: Number of executing platform threads. |
| 45 | + |
| 46 | + - bean: java.lang:type=ClassLoading |
| 47 | + prefix: jvm.class. |
| 48 | + type: updowncounter |
| 49 | + unit: "{class}" |
| 50 | + mapping: |
| 51 | + # jvm.class.loaded |
| 52 | + TotalLoadedClassCount: |
| 53 | + metric: loaded |
| 54 | + desc: Number of classes loaded since JVM start. |
| 55 | + # jvm.class.unloaded |
| 56 | + UnloadedClassCount: |
| 57 | + metric: unloaded |
| 58 | + desc: Number of classes unloaded since JVM start. |
| 59 | + # jvm.class.count |
| 60 | + LoadedClassCount: |
| 61 | + metric: count |
| 62 | + desc: Number of classes currently loaded. |
| 63 | + |
| 64 | + - bean: java.lang:type=OperatingSystem |
| 65 | + prefix: jvm. |
| 66 | + # TODO: drop negative values once https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/13589 is merged |
| 67 | + # dropNegativeValues: true |
| 68 | + mapping: |
| 69 | + # jvm.cpu.count |
| 70 | + AvailableProcessors: |
| 71 | + metric: cpu.count |
| 72 | + type: updowncounter |
| 73 | + unit: "{cpu}" |
| 74 | + desc: Number of processors available to the Java virtual machine. |
| 75 | + # jvm.cpu.time |
| 76 | + ProcessCpuTime: |
| 77 | + metric: cpu.time |
| 78 | + type: counter |
| 79 | + sourceUnit: ns |
| 80 | + unit: s |
| 81 | + desc: CPU time used by the process as reported by the JVM. |
| 82 | + # jvm.cpu.recent_utilization |
| 83 | + ProcessCpuLoad: |
| 84 | + metric: cpu.recent_utilization |
| 85 | + type: gauge |
| 86 | + unit: '1' |
| 87 | + desc: Recent CPU utilization for the process as reported by the JVM. |
| 88 | + # jvm.system.cpu.load_1m (experimental) |
| 89 | + SystemLoadAverage: |
| 90 | + metric: system.cpu.load_1m |
| 91 | + type: gauge |
| 92 | + unit: "{run_queue_item}" |
| 93 | + desc: Average CPU load of the whole system for the last minute as reported by the JVM. |
| 94 | + # jvm.system.cpu.utilization (experimental) |
| 95 | + SystemCpuLoad: |
| 96 | + metric: system.cpu.utilization |
| 97 | + type: gauge |
| 98 | + unit: '1' |
| 99 | + desc: Recent CPU utilization for the whole system as reported by the JVM. |
| 100 | + |
| 101 | + - bean: java.nio:name=*,type=BufferPool |
| 102 | + prefix: jvm.buffer. |
| 103 | + type: updowncounter |
| 104 | + metricAttribute: |
| 105 | + jvm.buffer.pool.name: param(name) |
| 106 | + mapping: |
| 107 | + # jvm.buffer.memory.used (experimental) |
| 108 | + MemoryUsed: |
| 109 | + metric: memory.used |
| 110 | + unit: By |
| 111 | + desc: Measure of memory used by buffers. |
| 112 | + # jvm.buffer.memory.limit (experimental) |
| 113 | + TotalCapacity: |
| 114 | + metric: memory.limit |
| 115 | + unit: By |
| 116 | + desc: Measure of total memory capacity of buffers. |
| 117 | + # jvm.buffer.count (experimental) |
| 118 | + Count: |
| 119 | + metric: count |
| 120 | + unit: "{buffer}" |
| 121 | + desc: Number of buffers in the pool. |
0 commit comments