grafana/mimir

Add warmup to EwmaRate

オープン

#5,443 opened on 2023/07/06

 (10 件のコメント) (0 件のリアクション) (0 人の担当者)Go (808 件のフォーク)auto 404
buggood first issue

Repository metrics

Stars
 (5,181 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド