cherti / mailexporter

Export Prometheus-style metrics about mail server functionality
https://prometheus.io
GNU General Public License v3.0
45 stars 9 forks source link

move histograms from linear bucketing to exponential bucketing? #12

Closed cherti closed 7 years ago

cherti commented 7 years ago

currently the mailexporter histograms deliver durations with a linear bucket scaling. it might be more reasonable (and compress the actual metric data while still being equivalently useful) to use an exponential bucketing scheme.

cherti commented 7 years ago

Main advantage: better resolution at small roundtrip-times at the expense of coarser resolution for large roundtrip times. However, in the range of large roundtrip times, fine grain resolution might actually not be to enlightning. Followup-Advantage: as large-time-buckets are large, we can easily extend the upper bound of the histogram to very large times cheaply

cherti commented 7 years ago

Probably combined bucketing is the best choice with linear buckets for the smaller area and higher bucketing for the upper area of the histogram to better resolve small roundtrip times.