]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
stats: Add support for exponential stats group-by fxn
authorJosef 'Jeff' Sipek <jeff.sipek@open-xchange.com>
Thu, 5 Mar 2020 12:20:53 +0000 (07:20 -0500)
committerjeff.sipek <jeff.sipek@open-xchange.com>
Fri, 13 Mar 2020 08:25:17 +0000 (08:25 +0000)
commit253f4294e36799a6a4d094b5ff2e4cd85a9fd39b
tree8d28ce444afd0114dec471acbee2b882ffd98437
parent1542585e9cf0fe8d3135e102ff91da8c11f384eb
stats: Add support for exponential stats group-by fxn

One can specify the quantization parameters in the config file as:

    <field>:exponential:<min mag>:<max mag>:<base>

Currently, only base 2 and base 10 are supported.

For example:

    group_by = bytes_out:exponential:1:4:10

Which will quantize the bytes_out values into the buckets: (-inf, 10],
(10,100], (100,1000], (1000, 10000], (10000, +inf).
src/config/Makefile.am
src/stats/Makefile.am
src/stats/stats-settings.c
src/stats/test-stats-metrics.c