Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ring global metrics #50

Merged
merged 7 commits into from
Oct 7, 2021

Conversation

treid314
Copy link
Contributor

@treid314 treid314 commented Oct 5, 2021

What this PR does: This is a refactor of the global metrics in Lifecycler and Ring in the Ring package. Since this is a shared base library we want to remove all global metrics and allow uses to decide how they want to register metrics. This also allows us to use these metrics in a similar fashion for cortex.

Checklist

  • [-] Tests updated
  • [-] CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

Tyler Reid added 2 commits October 4, 2021 16:55
@treid314 treid314 requested a review from pracucci October 5, 2021 21:14
Copy link
Contributor

@pracucci pracucci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job! A couple of things to fix/improve and it's good 👏

ring/lifecycler_metrics.go Outdated Show resolved Hide resolved
ring/lifecycler.go Outdated Show resolved Hide resolved
ring/lifecycler.go Outdated Show resolved Hide resolved
ring/lifecycler.go Outdated Show resolved Hide resolved
ring/ring.go Outdated Show resolved Hide resolved
ring/ring.go Outdated Show resolved Hide resolved
ring/ring.go Outdated Show resolved Hide resolved
@treid314 treid314 merged commit 4c56601 into grafana:main Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants