Binding the Metric Parameters to the Fact Attributes in the Schema
Procedure
-
Bind the metric function parameters to the fact attributes in the schema file as shown in the following snippet:
<measurement name="MyAverage" unit="second"> <metric-function ref="My.AVG"> <function-params> <function-param name="PARAM1" attribute-ref="up_time"/> </function-params> </metric-function> </measurement>
-
Use this measurement in one or more dimension hierarchies as follows:
<hierarchy name="NodeTrends"> <properties> <property name="storage-schema" value="NodeTrends"/> </properties> <dimensions> <dimension ref="environment" compute="false"/> <dimension ref="host" compute="false"/> <dimension ref="node" compute="false"/> <dimension ref="weeks"/> <dimension ref="days"/> <dimension ref="hours"/> <dimension ref="minutes"/> </dimensions> <measurement-refs> <measurement ref="MyAverage"/> </measurement-refs> </hierarchy>
Copyright © 2022. Cloud Software Group, Inc. All Rights Reserved.