From 85b60a1362f76c7fa2f0a24f9680879d8d9e398e Mon Sep 17 00:00:00 2001 From: Matthieu Moquet Date: Tue, 14 Nov 2023 15:25:29 +0100 Subject: [PATCH] fix: make sure rank metric is reset after each epoch --- pkg/watcher/watcher.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/watcher/watcher.go b/pkg/watcher/watcher.go index f227242..02191f2 100644 --- a/pkg/watcher/watcher.go +++ b/pkg/watcher/watcher.go @@ -132,6 +132,7 @@ func (w *Watcher) collectValidators(ctx context.Context) (near.ValidatorsRespons w.metrics.ValidatorProducedChunks.Reset() w.metrics.ValidatorSlashed.Reset() w.metrics.ValidatorStake.Reset() + w.metrics.ValidatorRank.Reset() w.metrics.NextValidatorStake.Reset() w.metrics.CurrentProposals.Reset() w.metrics.PrevEpochKickout.Reset()