File tree Expand file tree Collapse file tree 1 file changed +77
-0
lines changed 
instrumentation/jmx-metrics/javaagent/src/main/resources/jmx/rules Expand file tree Collapse file tree 1 file changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ #  based on: https://github.com/open-telemetry/opentelemetry-java-contrib/blob/main/jmx-metrics/src/main/resources/target-systems/jvm.groovy
3+ rules :
4+   - bean : java.lang:type=ClassLoading 
5+     prefix : jvm.classes.loaded. 
6+     mapping :
7+       LoadedClassCount :
8+         metric : count 
9+         type : updowncounter 
10+         unit : " {class}" 
11+         desc : number of loaded classes 
12+ 
13+   - bean : java.lang:type=GarbageCollector,* 
14+     prefix : jvm.gc.collections. 
15+     metricAttribute :
16+       name : param(name) 
17+     mapping :
18+       CollectionCount :
19+         metric : count 
20+         type : updowncounter 
21+         unit : " {collection}" 
22+         desc : total number of collections that have occurred 
23+       CollectionTime :
24+         metric : elapsed 
25+         type : updowncounter 
26+         unit : ms 
27+         desc : the approximate accumulated collection elapsed time in milliseconds 
28+ 
29+   - bean : java.lang:type=Memory 
30+     prefix : jvm.memory. 
31+     mapping :
32+       HeapMemoryUsage.used :
33+         metric : heap.used 
34+         type : updowncounter 
35+         unit : By 
36+         desc : current heap usage 
37+       HeapMemoryUsage.max :
38+         metric : heap.max 
39+         type : gauge 
40+         unit : By 
41+         desc : max allowed heap 
42+       NonHeapMemoryUsage.used :
43+         metric : nonHeap 
44+         type : updowncounter 
45+         unit : By 
46+         desc : current non-heap usage 
47+       NonHeapMemoryUsage.max :
48+         metric : nonHeap.max 
49+         type : gauge 
50+         unit : By 
51+         desc : max allowed non-heap 
52+ 
53+   - bean : java.lang:type=MemoryPool,* 
54+     prefix : jvm.memory. 
55+     metricAttribute :
56+       name : param(name) 
57+     mapping :
58+       Usage.used :
59+         metric : pool.used 
60+         type : updowncounter 
61+         unit : By 
62+         desc : current memory pool usage 
63+       Usage.max :
64+         metric : pool.max 
65+         type : gauge 
66+         unit : By 
67+         desc : max allowed memory pool  
68+ 
69+   - bean : java.lang:type=Threading 
70+     prefix : jvm.threads. 
71+     mapping :
72+       ThreadCount :
73+         metric : count 
74+         type : updowncounter 
75+         unit : " {thread}" 
76+         desc : number of threads 
77+       
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments