Rate is an object for representing a custom metric keeping track of the percentage of added values that are non-zero. It is one of the four custom metrics.
Parameter | Type | Description |
---|---|---|
name | string | The name of the custom metric. |
Method | Description |
---|---|
Rate.add(value, [tags]) ] | Add a value to the rate metric. |
Rate usage in Thresholds
When Rate is used in a threshold expression, the variable must be called rate (lower case). For example:
- rate < 0.1 // less than 10%
- rate >= 0.9 // more or equal to 90%
The value of the rate variable ranges between 0.00 and 1.00.
Examples
Simple example
Usage in Thresholds