Skip to content

Commit

Permalink
Collect metrics on ring start
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyler Reid committed Oct 12, 2021
1 parent 4c56601 commit eb895dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ring/ring.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ func (r *Ring) starting(ctx context.Context) error {
}

r.updateRingState(value.(*Desc))
r.updateRingMetrics()

// Start metrics update ticker, and give it a function to update the ring metrics.
r.metricsUpdateTicker = time.NewTicker(10 * time.Second)
Expand Down

0 comments on commit eb895dc

Please sign in to comment.