Quota reporting per tenant
Userstory
As a hoster, I want to have access to detailed tenant usage metrics so that I can bill my customers fairly and identify which tenants consume most of my infrastructure.
UserValua
This allows the hoster to generate transparent billing and understand which tenants are driving resource consumption.
Acceptance Criteria
System exposes per-tenant metrics for:
- Quota usage (including versioned files and trash ?)
- Number of users
- Number of groups
- Number of spaces
System optionally exposes performance-related metrics per tenant:
- Requests/second
- Bandwidth usage
- Metrics are accessible in a standardized format (e.g. Prometheus-compatible endpoint)
- Metrics can be aggregated and queried per tenant
- Documentation exists describing how to fetch and interpret these metrics / endpoint for billing purposes
Original Ticket description:
As a hoster I need to bill my customers. To calculate the pricepoint for every tenant, I need to know the quota usage, includig versioned files and trash as well as the number of users, groups and spaces.
To fine tune it, per tenant metrics for requests/second and bandwith would be interesting. I need to know which tenant eats my infrastructure.
@butonic how would the hoster consume these info - via metric endpoint? @micbar added it to https://github.com/opencloud-eu/internal/issues/153
versions and trash are currently not in the quota calculation