-
Notifications
You must be signed in to change notification settings - Fork 9.7k
api: Create /status/tsdb/blocks
endpoint.
#16695
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
Conversation
031fe16
to
785cb5f
Compare
/status/tsdb/blocks
endpoint.
785cb5f
to
589e8ba
Compare
I wanted to write unit test case for |
@SuperQ can you give it a review? |
589e8ba
to
098d4f7
Compare
I also never worked in this field But I tried, it worked. Based on your feedback, I refactored the @juliusv can you give it review :) |
098d4f7
to
5841472
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! While I'm not a TSDB expert, the TSDB-related changes looks pretty simple and good to me, so I think I would feel comfortable merging them unless @codesome or @jesusvazquez have any objections in the next days.
Other than that, just a few comments.
Also, could you please add documentation for the new endpoint at:
https://github.com/prometheus/prometheus/blob/main/docs/querying/api.md
(...which is the source for https://prometheus.io/docs/prometheus/latest/querying/api/#http-api)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on the TSDB changes with a small suggestion
282360f
to
995e352
Compare
this endpoint serves blocks data to the client. Signed-off-by: sujal shah <sujalshah28092004@gmail.com>
995e352
to
4408a6b
Compare
@juliusv made the relevant doc change and posted a question above in a thread. I am not able to access docs at |
@juliusv, gentle reminder for this PR. Is this ready to merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Merging :)
This cover the first part of creating endpoint which list out blocks detail.
Response
Fixes #16647.