From 3998a677f90d93348cf4f079f68f7c0e1392cfc5 Mon Sep 17 00:00:00 2001 From: Dean Coakley Date: Tue, 4 May 2021 14:58:41 +0100 Subject: [PATCH] Improve description of MaxAge in summary docs (#864) * Improve description of MaxAge in summary docs Signed-off-by: Dean Coakley --- prometheus/summary.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/prometheus/summary.go b/prometheus/summary.go index fb5ce22..50e48ba 100644 --- a/prometheus/summary.go +++ b/prometheus/summary.go @@ -121,7 +121,9 @@ type SummaryOpts struct { Objectives map[float64]float64 // MaxAge defines the duration for which an observation stays relevant - // for the summary. Must be positive. The default value is DefMaxAge. + // for the summary. Only applies to pre-calculated quantiles, does not + // apply to _sum and _count. Must be positive. The default value is + // DefMaxAge. MaxAge time.Duration // AgeBuckets is the number of buckets used to exclude observations that