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

Simplify store gateway metrics #123

Merged
merged 1 commit into from
Aug 11, 2021
Merged

Conversation

pracucci
Copy link
Collaborator

What this PR does:
Now that we imported Thanos BucketStore into Mimir, we can simplify the BucketStore metrics and avoid having to aggregate its metrics via Registerer wrapper (we still need it for index-header lazy loader metrics, which I will try to address separately in Thanos).

I've done a manual test and I think the refactoring is a noop from the user perspective, except that will use less CPU and memory to export metrics from store-gateway if you have a large number of tenants.

Which issue(s) this PR fixes:
Fixes partially #102

Checklist

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

@pracucci pracucci force-pushed the simplify-store-gateway-metrics branch from c5aba88 to bf430e2 Compare August 11, 2021 15:10
@@ -89,174 +88,16 @@ const (
labelDecode = "decode"
)

type bucketStoreMetrics struct {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved to pkg/storegateway/bucket_store_metrics.go

Copy link
Member

@pstibrany pstibrany left a comment

Choose a reason for hiding this comment

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

Nice!

@pracucci pracucci merged commit 66214a8 into main Aug 11, 2021
@pracucci pracucci deleted the simplify-store-gateway-metrics branch August 11, 2021 16:06
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