-
Notifications
You must be signed in to change notification settings - Fork 0
metric_property
Mario Bielert edited this page Aug 7, 2017
·
5 revisions
The metric_property is used to represent a single metric.
The name of the metric. Used in add_metric for identification.
The description of the metric
The unit of the metric values for this metric
The mode of this metric. This is given by the cross product of ABSOLUTE, RELATIVE, and ACCUMULATED with POINT, LAST, NEXT, and START.
The type of the metric values. This can one of:
doubleint64uint64
The base of the metric values. Can be decimal or binary.
The exponent of the metric values.
Sets the base to 10.
Sets the base to 2.
Sets the exponent to the given value.
Base and exponent are used to scale metric values. For a given input value x the resulting scaled metric value will be calculated by:
T metric_value = x * pow(base, exponent);