grafana/mimir

Add warmup to EwmaRate

Aperta

#5443 aperta il 6 lug 2023

 (10 commenti) (0 reazioni) (0 assegnatari)Go (808 fork)auto 404
buggood first issue

Metriche repository

Star
 (5181 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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.

Guida contributor