Skip to content

Tenant Quotas & Query Budget Management Page #316

@ElioNeto

Description

@ElioNeto

Tenant Quotas & Query Budget Management Page

Create an Angular page for managing tenant quotas and query budgets using the existing quotas and query_budget infrastructure.

Backend Endpoints Needed

GET    /admin/quotas                  — List all tenant quotas
PUT    /admin/quotas/{tenant}         — Update quota for a tenant
GET    /admin/quotas/{tenant}/usage   — Current usage for a tenant
GET    /admin/budgets                 — List all query budgets
PUT    /admin/budgets/{name}          — Update query budget
GET    /admin/budgets/{name}/status   — Current budget consumption

UI Requirements

Quota Management

  • Tenant Quotas Table: Tenant name, max keys, max storage, current usage, usage %
  • Usage Bars: Visual progress bars showing consumption
  • Quota Editor: Edit limits for each tenant
  • Bulk Edit: Apply same limits to multiple tenants
  • Over Quota Alerts: Highlight tenants at/near capacity

Query Budget

  • Budget Cards: Name, max queries/min, current rate, status
  • Status: Available / Exhausted / Degraded with color coding
  • Budget Editor: Configure max queries per time window
  • Consumption History: Chart showing usage over time

Acceptance Criteria

  • Tenant quota list displays correctly with usage bars
  • Single and bulk quota editing works
  • Query budget status shows correctly
  • Budget exhausted state is visually indicated
  • Error states handled

Parent Epic

#290

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions