rate

Function

ArgDescriptionType
xThe X floatfloat64 (required)
yThe Y floatfloat64 (required)

Description

Calculates the rate (derivative) between two quantities.

For example if a monitoring plugin returns an absolute value sampled in time (e.g. bytes transferred sampled every second) then the rate() plugin can calculate the average bytes/sec.

This function works by remembering the values of x and y from the previous row and applying the current rows values.