-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
bucketweb: Show block size in details pane #7205
Comments
@outofrange I believe you can fetch information about each block inside their I often download the Feel free to work on this and come over to #thanos-dev in the CNCF slack if you need any help. |
@douglascamata PR is open :) I added values I'd benefit from:
Not sure if this is either too much, or could benefit from more or a different presentation, so I'd be happy for feedback :) |
Is your proposal related to a problem?
I would like to be able to easily judge
bucket rewrite
wasI botched together a simple script that queries S3, but I'm wondering if this would be a good addition in Thanos Bucketweb?
Describe the solution you'd like
Bucketweb already shows details for blocks when clicking on one.
Currently, the details pane will show infos taken from
meta.json
, like time range, duration, counts for series/samples/chunks, resolution, level, source and labels.I'd like to also be able to see a human readable bytes presentation of the actually used storage space, both for metric data and index.
This would require
Describe alternatives you've considered
Doing it with custom scripts is possible, but having it in the official UI would be great.
I also thought about something like a Thanos Bucket Prometheus Exporter to provide more metadata via Prometheus, but not as nice as having it directly in the UI.
To bring it to the UI, my approach would be to retrieve used space from S3 within bucketweb. As far as I know, this requires multiple (maybe recursive?) calls, as there is no simple S3 API for "calculate total bytes used by directory XYZ".
This step could be avoided by adding a field like
totalSize
(and maybe something likemetricSize
andindexSize
as well) tometa.json
when producing the block - this might be the better solution, especially when other tools could use this info too, but I can't say if touching a component that central is "worth it".Additional context
With this information available, other presentations would be possible as well, like summing the size of all blocks to show the total usage per block stream / UI row
Edit:
Oh, as this seems to be simple enough for a Go noob, I can imagine to work on a PR (if / when I find time...)!
The text was updated successfully, but these errors were encountered: