From b6cb4d6e6568b19faa45718aee48ad9b45afa42f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Senart?= Date: Tue, 10 Jul 2018 16:39:58 +0200 Subject: [PATCH] metrics: Explain choice of TDigest compression parameter --- lib/metrics.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/metrics.go b/lib/metrics.go index 006bf700..2d0f7813 100644 --- a/lib/metrics.go +++ b/lib/metrics.go @@ -136,6 +136,8 @@ func (m *Metrics) init() { } if m.latencies == nil { + // This compression parameter value is the recommended value + // for normal uses as per http://javadox.com/com.tdunning/t-digest/3.0/com/tdunning/math/stats/TDigest.html m.latencies = newTdigestEstimator(100) }