Previous Topic: (Optional) Add the <ReconfigDetectionAttr> SectionNext Topic: Verify Your Custom Metric Family Results in a Test Environment


Add the <ExpressionGroupList> Section

Expressions tell Data Aggregator how to calculate values for attributes of items that are either defined in or related to your metric family. The expressions included in your custom metric family determine how these values display in reports and dashboard views. Expressions are included in the <ExpressionGroupList> section.

If the attributes of your metric family are table attributes, your metric family XML must include the <ExpressionGroupList> section, and an expression group is required for at least the following two related items (destination certifications):

You must also define an expression group for each component defined in your custom metric family. The tags in the <ExpressionGroupList> section are as follows:

Note: For more information about each XML tag, see the inline documentation provided in the MetricFamily.xsd and Component.xsd files. For code examples, see the ProcessInfoMFWithComponent.xml file. This example file defines a metric family for gathering process metrics.

More information:

Create a Custom Metric Family XML File

ExpressionGroupList

The following information describes performing calculations from elements in the attribute list. Often calculations are trivial assignments, such as the process ID.

Note: Do not confuse the metric family and vendor certification ExpressionGroups. The metric family exposes its attributes with a URI of the following form:

{http://im.ca.com/normalizer}Name.AttributeName

The attributes are referred to in the vendor certification ExpressionGroup.

The metric family ExpressionGroup populates the database with different items that are addressed using a DestCert and a DestAttr URI. The value is computed in the Expression, which typically are trivial assignments of elements in the attribute list.

For example, the following illustration shows how {http://im.ca.com/inventory}Process.ProcessID is mapped to the PID attribute from the metric family AttributeList.

A list of the elements for ExpressionGroup List for a metric family

The following DestCert URIs must exist:

DestCert URI

DestAttr

{http://im.ca.com/core}Item

Name

{http://im.ca.com/core}Item

Description

{http://im.ca.com/inventory} DeviceComponent

IndexList

{http://im.ca.com/inventory} component

Attribute name as defined in ComponentDefinitionList. In the example, the component Process provides the attributes Arguments, ProcessUID, ProcessID, and ParentProcessID.