March 2, 2022 release notes¶
OPAL¶
Updated metrics functions¶
rate()
function andrate
rollup methodThe
rate()
function has been simplified, it now has the same behavior for bothgauge
andcumulativeCounter
type metrics. If the next recorded value for a metric is less than the previous, we presume the metric was reset back to zero between observations.rate()
now always returns a positive value.The previous
gauge
behavior, where the rate could be negative, was very rarely used. This update simplifies the more common case, and also applies to therate
rollup method.deriv()
functionIf you need the original
gauge
type behavior, where a decreasing value results in a negative rate, usederiv()
instead.