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

api: Refactor API into a new package #2926

Merged
merged 9 commits into from
Jul 30, 2020
Merged

Conversation

onprem
Copy link
Member

@onprem onprem commented Jul 22, 2020

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  • Consolidated the API logic into a new package.
  • Implement API in the Compactor.
  • Add /blocks endpoint to return blocks metadata.
  • Expose the same API from Block Viewer.

Verification

Tested Locally using docker-compose setup.

Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
@onprem onprem changed the title compact: Implement API endpoint to return blocks information api: Refactor API into a new package Jul 28, 2020
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Nice! Some comments though. (:

cmd/thanos/compact.go Outdated Show resolved Hide resolved
pkg/api/compact/v1.go Outdated Show resolved Hide resolved
pkg/api/compact/v1.go Outdated Show resolved Hide resolved
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Signed-off-by: Prem Kumar <prmsrswt@gmail.com>
Copy link
Member

@bwplotka bwplotka left a comment

Choose a reason for hiding this comment

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

Looks perfect to me, LGTM, but let's wait on @GiedriusS or @squat for final call.

BTW I really would love to look for some hosting which would allow us to run Thanos on every PR and play with the UI (:

Copy link
Member

@GiedriusS GiedriusS left a comment

Choose a reason for hiding this comment

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

LGTM! Awesome work.

@GiedriusS GiedriusS merged commit 86e4b69 into thanos-io:master Jul 30, 2020
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.

3 participants