From 73e8bc00207ab07bb99f41efb453c1c0a6aba394 Mon Sep 17 00:00:00 2001 From: Matt Ketmo Date: Tue, 14 Nov 2023 15:28:14 +0100 Subject: [PATCH] fix: make sure rank metric is reset after each epoch (#8) to avoid exploding metrics cardinality --- 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()