Skip to content

Commit 73e8bc0

Browse files
authored
fix: make sure rank metric is reset after each epoch (#8)
to avoid exploding metrics cardinality
1 parent 00ab5c7 commit 73e8bc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/watcher/watcher.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ func (w *Watcher) collectValidators(ctx context.Context) (near.ValidatorsRespons
132132
w.metrics.ValidatorProducedChunks.Reset()
133133
w.metrics.ValidatorSlashed.Reset()
134134
w.metrics.ValidatorStake.Reset()
135+
w.metrics.ValidatorRank.Reset()
135136
w.metrics.NextValidatorStake.Reset()
136137
w.metrics.CurrentProposals.Reset()
137138
w.metrics.PrevEpochKickout.Reset()

0 commit comments

Comments
 (0)