Previous Topic: USM Metrics SupportNext Topic: Connector Configuration Files


Metric Data Repository

The SOI_HOME\resources\SampleConnector\data\sample-metrics.xml file is the data repository for metric data. You can add new metric definitions and values to the file, and the Sample connector uses all metric definitions and values for sample metric collection.

The following example shows how metrics are defined in the sample-metrics.xml file:

<silodata xsi:type="usm:SiloData">
   <properties>
       <property name="MdrElementID" value="3" />
       <property name="MetricName" value="total_accounts" />
       <property name="MetricDescription" value="total_accounts" />
       <property name="MetricType" value="Gauge" />
       <property name="MetricUnitDefinition" value="Number" />
       <property name="MetricDataType" value="Int" />
       <property name="IsOnlyLiveData" value="false" />
       <property name="MinGranularityInSecs" value="3600.0" />
       <property name="Value" value="100" />
       <property name="Timestamp" value="2010-08-05T11:00:00-06:00" />
       <property name="Value1" value="200" />
       <property name="Timestamp1" value="2010-08-17T11:00:00-06:00" />
   </properties>
</silodata>

This syntax defines the total_accounts sample metric as follows:

To indicate a historical data metric, define multiple Value properties incremented by integers, and define a timestamp for each value.