Fetching contributors…
Cannot retrieve contributors at this time
137 lines (109 sloc) 7.04 KB
<?xml version="1.0" encoding="UTF-8" ?>
<plugin name="KieRHQPlugin"
displayName="Kie RHQ JMX Plugin"
description="Provides monitoring of Kie Bases and Sessions"
version="1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:xmlns:rhq-plugin"
xmlns:c="urn:xmlns:rhq-configuration">
<depends plugin="JMX" useClasses="true"/>
<service name="Kie Service"
description="Kie Service"
discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
class="org.rhq.plugins.jmx.MBeanResourceComponent">
<runs-inside>
<parent-resource-type name="JMX Server" plugin="JMX"/>
</runs-inside>
<plugin-configuration>
<c:simple-property name="objectName" readOnly="true" default="org.drools:type=DroolsManagementAgent"/>
</plugin-configuration>
<service name="Kie Bases"
description="The Kie Base monitoring service."
discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
class="org.rhq.plugins.jmx.MBeanResourceComponent">
<plugin-configuration>
<c:simple-property name="objectName" readOnly="true" default="org.drools.kbases:type=%kbaseId%"/>
<c:simple-property name="nameTemplate" readOnly="true" default="KieBase {kbaseId}"/>
<c:simple-property name="descriptionTemplate" readOnly="true" default="A JMX bean for Kie Base {kbaseId}"/>
<c:simple-property name="kbaseId" type="string" readOnly="true" description="The Kie Base Id"/>
</plugin-configuration>
<operation name="startInternalMBeans"
displayName="Start Internal MBeans"
description="Starts all the internal dependent MBeans.">
</operation>
<operation name="stopInternalMBeans"
displayName="Stop Internal MBeans"
description="Stops all the internal dependent MBeans.">
</operation>
<service name="Kie Sessions"
description="The Kie Session monitoring service."
discovery="org.rhq.plugins.jmx.MBeanResourceDiscoveryComponent"
class="org.rhq.plugins.jmx.MBeanResourceComponent">
<plugin-configuration>
<c:simple-property name="objectName" readOnly="true" default="org.drools.kbases:type=%kbaseId%,group=Sessions,sessionId=%sessionId%"/>
<c:simple-property name="nameTemplate" readOnly="true" default="KieSession {sessionId}"/>
<c:simple-property name="descriptionTemplate" readOnly="true" default="A JMX bean for Kie Base {kbaseId}, Kie session {sessionId}"/>
<c:simple-property name="kbaseId" type="string" readOnly="true" description="The Kie Base Id"/>
<c:simple-property name="sessionId" type="string" readOnly="true" description="The Kie Session Id"/>
</plugin-configuration>
<operation name="reset" displayName="Reset Metrics" description="Reset all metric counters."/>
<operation name="getStatsForRule"
displayName="Get statistics for rule"
description="Get and return the statistics for a specific rule.">
<parameters>
<c:simple-property name="ruleName" displayName="Rule Name" required="true"/>
</parameters>
<results>
<c:simple-property name="stats"/>
</results>
</operation>
<operation name="getStatsForProcess"
displayName="Get statistics for process"
description="Get and return the statistics for a specific process.">
<parameters>
<c:simple-property name="processId" displayName="Process ID" required="true"/>
</parameters>
<results>
<c:simple-property name="stats"/>
</results>
</operation>
<operation name="getStatsForProcessInstance"
displayName="Get statistics for process instance"
description="Get and return the statistics for a specific process instance.">
<parameters>
<c:simple-property name="processInstanceId" displayName="Process Instance ID" required="true"/>
</parameters>
<results>
<c:simple-property name="stats"/>
</results>
</operation>
<metric displayName="Total Fact Count" property="TotalFactCount"
description="The total number of facts in memory"
category="utilization" displayType="summary" measurementType="dynamic"/>
<metric displayName="Total Matches Created" property="TotalMatchesCreated"
description="The total number of matches created since reset"
category="throughput" displayType="summary" measurementType="trendsup"/>
<metric displayName="Total Matches Fired" property="TotalMatchesFired"
description="The total number of matches fired since reset"
category="throughput" displayType="summary" measurementType="trendsup"/>
<metric displayName="Total Matches Cancelled" property="TotalMatchesCancelled"
description="The total number of matches cancelled since reset"
category="throughput" displayType="summary" measurementType="trendsup"/>
<metric displayName="Total Firing Time" property="TotalFiringTime" units="milliseconds"
description="The total time spent firing rules since reset"
category="performance" displayType="summary" measurementType="trendsup"/>
<metric displayName="Total Process Instances Started" property="TotalProcessInstancesStarted"
description="The total number of process instances started since reset"
category="throughput" displayType="summary" measurementType="trendsup"/>
<metric displayName="Total Process Instances Completed" property="TotalProcessInstancesCompleted"
description="The total number of process instances completed since reset"
category="throughput" displayType="summary" measurementType="trendsup"/>
<metric property="LastReset"
description="The timestamp of the last reset operation"
displayName="Last Reset"
dataType="trait"
displayType="summary" />
</service>
</service>
</service>
</plugin>