pthulasiram / jmxetric

Automatically exported from code.google.com/p/jmxetric
MIT License
0 stars 0 forks source link

Composite Data Types only report one metric. #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When reporting on CompositeData values only the first composite is ever 
reported, even if you have multiple <attribute> tags with only one <composite> 
each.

Example:

<mbean name="java.lang:type=Memory" pname="Memory">
                        <attribute name="HeapMemoryUsage">
                                <composite name="init" pname="Heap_init" type="int32" units="bytes"/>
                        </attribute>
                        <attribute name="HeapMemoryUsage">
                                <composite name="committed" pname="Heap_committed" type="int32" units="bytes"/>
                        </attribute>
                        <attribute name="HeapMemoryUsage">
                                <composite name="used" pname="Heap_used" type="int32" units="bytes" />
                        </attribute>
                        <attribute name="HeapMemoryUsage">
                                <composite name="max" pname="Heap_max" type="int32" units="bytes" />
                        </attribute>
                        <attribute name="NonHeapMemoryUsage" >
                                <composite name="init" pname="NonHeap_init" type="int32"  units="bytes" />
                                <composite name="committed" pname="NonHeap_committed" type="int32" units="bytes" />
                                <composite name="used" pname="NonHeap_used" type="int32" units="bytes" />
                                <composite name="max" pname="NonHeap_max" type="int32" units="bytes" />
                        </attribute>
                </mbean>

Will only report 2 values.

Original issue reported on code.google.com by mattroc...@gmail.com on 28 Jul 2010 at 6:48

GoogleCodeExporter commented 8 years ago
Apparently this has been fixed in the trunk.

Original comment by mattroc...@gmail.com on 29 Jul 2010 at 2:38

GoogleCodeExporter commented 8 years ago
Hi, yes I believe this is a dupe of issue 10..

I think I should make another release..

Original comment by jasper...@gmail.com on 1 Aug 2010 at 8:06