Skip to content

Commit

Permalink
fix: make sure rank metric is reset after each epoch (#8)
Browse files Browse the repository at this point in the history
to avoid exploding metrics cardinality
  • Loading branch information
MattKetmo committed Nov 14, 2023
1 parent 00ab5c7 commit 73e8bc0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/watcher/watcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 73e8bc0

Please sign in to comment.