By default statistics produce counter, for example cumulative,
values. You can change this with StatsType
parameter.
Format specifiers, such as %{GlobalVar:name}
, are
evaluated when the configuration is loaded. The parameter value is the
output type and can be one of:
cumulative
: cumulative counter shows the
number of processed packets.
derivative
: derivative is the difference (delta)
between two counter values in time interval.
packet_rate
: packet rate is the amount
of packets transferred within time interval (packets per second).
all
: all produces output from all
available statistic types (cumulative, derivative and
packet_rate).
The default output type is
cumulative
.
# We are interested in the difference (delta)
StatsType derivative