opencloud icon indicating copy to clipboard operation
opencloud copied to clipboard

Quota reporting per tenant

Open butonic opened this issue 4 months ago • 2 comments

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 avatar Aug 19 '25 08:08 butonic

@butonic how would the hoster consume these info - via metric endpoint? @micbar added it to https://github.com/opencloud-eu/internal/issues/153

tbsbdr avatar Sep 02 '25 09:09 tbsbdr

versions and trash are currently not in the quota calculation

tbsbdr avatar Sep 04 '25 11:09 tbsbdr