SiaFoundation / renterd

A renter for Sia
https://sia.tech/software/renterd
MIT License
67 stars 19 forks source link

Add bucket size on buckets list #861

Open artur9010 opened 9 months ago

artur9010 commented 9 months ago

Description

Currently there is no option to check bucket size without using external tools like rclone ncdu. It would be nice to view it here.

image

Version

1.0.0-zen

What operating system are you running (e.g. Ubuntu 22.04, macOS, Windows 11)?

Ubuntu 22.04, kubernetes

Anything else?

No response

alexfreska commented 9 months ago

@peterjan I'm trying to remember, did we have these at one point?

ChrisSchinnerl commented 9 months ago

@peterjan I'm trying to remember, did we have these at one point?

I don't think so. Might be a leftover from when we didn't have buckets?

alexfreska commented 7 months ago

@ChrisSchinnerl it could be useful to track bucket-specific stats which would also allow us to add bucket size and health to the list response. Besides showing these values on the bucket list, the file count and health we currently show when browsing in a bucket are global, it would probably be more intuitive if it was for the current bucket (add a bucket param to /api/stats).

Screenshot 2024-02-13 at 11 12 03 AM
ChrisSchinnerl commented 7 months ago

@alexfreska we added a "bucket" param https://github.com/SiaFoundation/renterd/pull/961