Skip to content

Commit

Permalink
Merge pull request #61 from treid314/metrics-on-start
Browse files Browse the repository at this point in the history
Collect ring metrics on ring start
  • Loading branch information
Tyler Reid authored Oct 12, 2021
2 parents 3a88ec0 + eb895dc commit f42334a
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 f42334a

Please sign in to comment.