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

make prefix for keys of objects created by boltdb-shipper configurable #3491

Conversation

sandeepsukhani
Copy link
Contributor

What this PR does / why we need it:
BoltDB Shipper stores object with the index/ prefix which is hardcoded which limits the usage of a single bucket to a single Loki cluster when using boltdb-shipper as index store.
To allow users to share a bucket with multiple Loki clusters using boltdb-shipper, we want to make the object key prefix configurable so that different Loki clusters store the index with different prefix hence isolate the index.

Special notes for your reviewer:
This should not be a breaking change since we are defaulting the value of the config to index/ which was hardcoded previously.

Copy link
Collaborator

@slim-bean slim-bean left a comment

Choose a reason for hiding this comment

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

LGTM!

@slim-bean slim-bean merged commit 835f710 into grafana:master Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants