grafana/mimir

Add warmup to EwmaRate

开放

#5,443 创建于 2023年7月6日

 (10 条评论) (0 个反应) (0 位负责人)Go (808 个派生)auto 404
buggood first issue

仓库指标

星标
 (5,181 个星标)
PR 合并指标
 (平均合并 3天 20小时) (30 天内合并 190 个 PR)

描述

Describe the bug

The current math.EwmaRate implementation does not require a warmup period, allowing a rate to be available after a single sample is added, which can lead to unexpected results, as described in #5394. Let's move warmup support from that PR into EwmaRate itself, to avoid problems with other users of this type.

贡献者指南