Smart Plug-in for WebLogic Server User's Guide

5-16
Chapter 5: WebLogic Server SPI User Defined Metrics
Introduction to User Defined Metrics
Sample Metric Definition Document
The following is a sample metric definition document to illustrate how you
might create your own user-defined metrics. This sample document also contains
examples of calculated metrics.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MetricDefinitions SYSTEM "MetricDefinitions.dtd">
<!-- sample UDM metrics configuration File -->
<MetricDefinitions>
<Metrics>
<!-- The following metrics illustrate some of the options
available when creating user-defined metrics.
-->
<!-- The following metric uses an MBean that can have
multiple instances in the MBean server. Note that
JMX-compliant pattern-matching can be used in the
MBean ObjectName tag.
-->
<Metric id="WLSSPI_0700" name="UDM_700" alarm="yes">
<MBean instanceType="multi">
<FromVersion server="6.0" update="1"/>
<ObjectName>*:*,Type=ExecuteQueueRuntime</ObjectName>
<Attribute>PendingRequestCurrentCount</Attribute>
</MBean>
</Metric>
<!-- The following 2 metrics are "base" metrics.
They are used in the calculation of a "final"
metric and are not alarmed, reported, or graphed
themselves. Base metrics may have an 'id' that
begins with a letter (case-sensitive) followed by
any combination of letters, numbers, and underscore.
Base metrics normally have alarm="no".
-->
<Metric id="JVM_HeapFreeCurrent" alarm="no" >