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

tsdb: expose hook in tsdb to allow customizing compactor #14113

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented May 16, 2024

This PR tries to expose a hook in TSDB to allow downstream projects which uses TSDB as a library to customize their own compactor implementation. If no hook is provided, by default the leveled compactor is used. There is no change for Prometheus project itself.

Also added a test case to cover the usage of the hook.

Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24
Copy link
Contributor Author

yeya24 commented May 28, 2024

Can you please take a look? @jesusvazquez Thanks

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.

None yet

2 participants