Skip to content

Instantly share code, notes, and snippets.

@pax95
Last active December 31, 2015 08:09
Show Gist options
  • Save pax95/7958413 to your computer and use it in GitHub Desktop.
Save pax95/7958413 to your computer and use it in GitHub Desktop.
<mbean domain="java.lang" properties="type=OperatingSystem">
<!-- simple attributes -->
<attribute name="Version" outputname="version"/>
<attribute name="TotalSwapSpaceSize" outputname="swapSpace"/>
<attribute name="TotalPhysicalMemorySize" outputname="physMem"/>
<attribute name="SystemLoadAverage" outputname="sysLoad"/>
<attribute name="ProcessCpuTime" outputname="cpuTime"/>
<attribute name="OpenFileDescriptorCount" outputname="openFD"/>
<attribute name="Name" outputname="name"/>
<attribute name="MaxFileDescriptorCount" outputname="maxFD"/>
<attribute name="FreeSwapSpaceSize" outputname="freeSwap"/>
<attribute name="FreePhysicalMemorySize" outputname="freePhysMem"/>
<attribute name="CommittedVirtualMemorySize" outputname="committed"/>
<attribute name="AvailableProcessors" outputname="processors"/>
<attribute name="Arch" outputname="arch"/>
</mbean>
<mbean domain="java.lang" properties="type=Memory">
<!-- composite attributes -->
<attribute name="NonHeapMemoryUsage:used" outputname="nonHeapUsed"/>
<attribute name="NonHeapMemoryUsage:max" outputname="nonHeapMax"/>
<attribute name="NonHeapMemoryUsage:init" outputname="nonHeapInit"/>
<attribute name="NonHeapMemoryUsage:committed" outputname="nonHeapCommitted"/>
<attribute name="HeapMemoryUsage:used" outputname="heapUsed"/>
<attribute name="HeapMemoryUsage:max" outputname="heapMax"/>
<attribute name="HeapMemoryUsage:init" outputname="heapInit"/>
<attribute name="HeapMemoryUsage:committed" outputname="heapCommitted"/>
<attribute name="ObjectPendingFinalizationCount" outputname="objectsPending"/>
</mbean>
<!-- Camel stuff -->
<mbean domain="org.apache.camel" properties="type=routes,*">
<attribute name="CamelId" outputname="RouteId"/>
<attribute name="ExchangesCompleted" outputname="ExchangesCompleted"/>
<attribute name="ExchangesFailed" outputname="ExchangesFailed"/>
<attribute name="ExchangesTotal" outputname="ExchangesTotal"/>
<attribute name="LastProcessingTime" outputname="LastProcessingTime"/>
<attribute name="MaxProcessingTime" outputname="MaxProcessingTime"/>
<attribute name="MeanProcessingTime" outputname="MeanProcessingTime"/>
<attribute name="MinProcessingTime" outputname="MinProcessingTime"/>
</mbean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment