BE: Dash: Return list of pools and quota sizes
#1 Updated by Neil Levine almost 8 years ago
For the dashboard, we want to add a new widget which shows the total number of pools available as the headline. For the context, we want to show if any pools are reaching their quota. The API probably needs to return a list of all pool names, actual usage and max quota size.
#3 Updated by John Spray almost 8 years ago
- Category set to Backend (REST API)
For pool space usage, 1.x code is already getting the 'df' info in _populate_space, just not storing the per-pool stuff, so that's easy.
quota_max_bytes is in the OSD map, so that's there too, although by default quotas are not set so nothing should rely too much on it being present.
#6 Updated by John Spray almost 8 years ago
- Status changed from 12 to In Progress
#8 Updated by Yan-Fa Li almost 8 years ago
Could we make the fields a little more uniform?
quota_max_bytes maps to bytes_used
Could we have
quota_max_bytes -> used_bytes
quota_max_objects -> used_objects
This helps when processing and makes the JSON a bit easier to read.
I'm also ok with make bytes the prefix
This has some readability benefits as the fields.
Other than that, this looks good +1