Open rafalh opened 4 days ago
@rafalh Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.
@rafalh Thank you for signing the Contributor License Agreement!
Before this change percentile metrics rotation interval was set to
expiry / bufferLength
. This was different from other metrics like_max
where the interval is set toexpiry
. At the same time documentation of theexpiry
parameter says clearly that it is used as rotation interval.This inconsistent behavior was confusing for users because some metrics expired faster than the others. What's more it caused some requests to be ignored in percentile metrics if
expiry
(also calledstep
) was set to the same duration as scrapping interval (e.g. 1 minute) and scrapping occurred not long after buffer rotation. In case of the default config wherebufferLength
is 3 it could result in up to 33% requests being ignored by percentile metrics.Fix this inconsistency by changing buffer rotation interval for percentiles to
expiry
.Fixes #3298