- Version
- since 2.x, describes 2.52.14
- Feature flag
consumption_reports- For
- Workspace administrator, Organization administrator
Consumption reports answer "what did this workspace use during this window" from one place: scheduler jobs, instance runtime, project storage, registry quota and inference tokens are aggregated over a date range and grouped per project or per user. The report is shown in the web app, downloaded as CSV from the app or the API, saved as a PDF from the browser, and e-mailed to the workspace owner once a month. Organisation administrators get the same figures across their workspaces, and operators a cross-workspace view in the operator console. Reports carry usage units only; prices and balances stay in Billing.
What it does
- Aggregates five sources over an inclusive
[from, to] window: scheduler jobs (GPU seconds, CPU seconds, runtime, count), instances (runtime, count), project storage (granted GB of shares and block volumes), registry (granted quota GB, plus live used GB on the workspace report) and inference (requests, prompt tokens, completion tokens).
- Groups the rows by project (default) or by user on the workspace report, and by workspace on the organisation and operator reports. Totals are always computed over every source, so a source that the chosen grouping cannot attribute still appears in the totals.
- Clamps runtime to the window and prorates a job that crosses a window edge: it contributes the linear share of its recorded GPU and CPU seconds that falls inside the window.
- Delivers the same figures as JSON, as CSV (
format=csv or Accept: text/csv, with a final TOTAL row) and as a PDF rendered in the browser from the displayed report. There is no server-side PDF.
- Sends each workspace owner the previous calendar month's report by e-mail on the 1st of the month, CSV attached, unless the workspace has opted out.
- Hides every report route and page behind the
consumption_reports feature flag.
Where it is
| Surface | Path |
|---|
| Web app (workspace) | Reports in the workspace sidebar: Consumption report with Generate report, Download CSV, Download PDF; Monthly report e-mail switch |
| Web app (organisation) | The organisation's Reports page (titled Organization reports): aggregate and per-workspace tables, Download CSV, Download PDF |
| Operator console | Reports, then Consumption in the sidebar (the page's breadcrumb reads Platform, then Consumption): cross-workspace report with a workspace filter and Download CSV |
| API (workspace) | GET /api/v1/workspaces/{workspace_id}/consumption?from=&to=&groupBy=project|user[&format=csv]; PUT /api/v1/workspaces/{workspace_id}/consumption/email-settings |
| API (organisation) | GET /api/v1/organizations/{id}/consumption?from=&to=[&format=csv] |
| API (operators) | GET /admin/consumption?from=&to=[&workspace=][&format=csv] |
| CLI | cerebro reports pull --from <date> --to <date> [--csv <file>] [--group-by project|user] (see CLI) |
Reading the workspace report is open to every workspace member; the e-mail switch requires the EditWorkspaceBasicInfo permission. The organisation report requires the organisation's admin role and both the organization_tier and consumption_reports flags. The operator console page requires the admin_reports staff permission.
How to use it
Generate a workspace report (workspace member)
- Open Reports in the workspace sidebar. The page generates the report for the last full calendar month when it opens.
- Choose a Period: Last month, Last 3 months or Custom with a From and To date and time. The window must not be inverted and may be at most 366 days long.
- Choose Group by: Project or User, then press Generate report. The summary cards show the server totals (GPU compute, CPU compute, job runtime, jobs, instance runtime, instances, storage GB, registry quota GB); the table shows one row per project or user with a Total line; a note states the live registry usage, or that it is unavailable.
- Download CSV opens the same query with
format=csv in a new tab; the browser saves consumption-report_<timestamp>.csv.
- Download PDF renders the displayed report, in landscape, into a PDF in your browser. Generate the report first; the PDF describes the window and grouping it was generated with, even if you change the form afterwards.
Group by user
Only scheduler jobs carry a user. Under User grouping the instance, storage, registry and inference figures count towards the totals only, and the rows list jobs per user.
Pull a report from the command line
cerebro reports pull --from 2026-06-01 --to 2026-06-30 --csv june.csv fetches the CSV through Accept: text/csv and writes it byte for byte. A date without a time expands to a full inclusive day (from to 00:00:00, to to 23:59:59); a YYYY-MM-DD HH:MM:SS value passes through unchanged. Without --csv the report is printed as a table with a TOTAL line (or as raw JSON with --json); --group-by is optional and defaults to project.
Opt out of the monthly e-mail (workspace administrator)
- On the Reports page, the Monthly report e-mail card (visible with the EditWorkspaceBasicInfo permission) has one switch.
- Switch it off to stop the e-mails; switch it on to resume. The API equivalent is
PUT .../consumption/email-settings with {"enabled": false} or {"enabled": true}.
- There is no call that returns the current setting, so the switch shows the platform default (enabled) until you change it on this page; the note under the switch says so.
Report across an organisation (organisation administrator)
- Open the organisation's Reports page. It requires the admin role in the organisation.
- Choose a period and press Generate report. Aggregate consumption shows the organisation totals, Per-workspace consumption one row per attached workspace, both with the same columns as the workspace report plus the inference tallies. Download CSV and Download PDF work as on the workspace page.
- The organisation report is grouped by workspace only and carries no live registry usage. See Organizations for how workspaces are attached to an organisation.
Report across workspaces (operator)
- In the operator console open Reports, then Consumption. The page generates the previous full month when it opens.
- Optionally filter by workspace id; the filter applies as you type. Rows are keyed by workspace. Download CSV opens the same query with
format=csv.
- Registry figures here are granted quotas only; for live usage open the workspace's project under Platform, then Registry.
On-demand and on-prem
- On-demand (web): switched on. The figures complement, and never replace, the billing history.
- Licensed on-prem: your operators switch the capability on with the
consumption_reports flag (Configuration); there is no external component to register. The monthly e-mail is sent through the deployment's mail relay, and its subject, sender and footer come from the active branding profile. With the billing module switched off, these reports are the usage record for internal accounting.
Numbers
Window and grouping
| What | Value | Where it is set |
|---|
| Window bounds | from and to both required, inclusive at both ends, interpreted in UTC; from == to is a valid one-instant window | platform |
| Longest window | 366 days (report_window_invalid beyond that or when from is after to) | platform |
| Grouping | workspace report: project (default) or user; organisation and operator reports: by workspace | platform |
| Web app presets | Last month, Last 3 months, Custom; the page opens on the last full calendar month | web app |
| CLI date expansion | YYYY-MM-DD becomes 00:00:00 for from and 23:59:59 for to | CLI |
| Format selection | format=csv or format=json wins; otherwise an Accept header containing text/csv selects CSV; otherwise JSON (invalid_format for any other value) | platform |
How each source is counted
| Source | Figures | Attribution | Window handling |
|---|
| Scheduler jobs | compute_gpu_seconds, compute_cpu_seconds, jobs_runtime_seconds, job_count | project, user or workspace | runtime clamped to the window; GPU and CPU seconds prorated by clamped runtime / full lifetime, rounded to the second; a still-running job's lifetime is measured up to now (or the window end if that is later), so usage after the window is not attributed to it; a job touching the window for one instant is counted with zero seconds |
| Instances | instance_runtime_seconds, instance_count | project or workspace; totals only under user grouping | lifetime from start to termination (or the window end if still running), clamped to the window; instances that never started are skipped; instances without a project land in the (none) row |
| Project storage | storage_gb | project or workspace; totals only under user grouping | point-in-time: today's granted sizes of shares and block volumes, whatever the window |
| Registry | registry_quota_gb; on the workspace JSON also registryUsedGb (live, 2 decimals) and registryUsageDegraded | workspace only; totals on project and user grouping | point-in-time granted quota; an unlimited grant counts 0; live usage comes from one registry call per report and degrades to grants only, with registryUsageDegraded: true, when the registry cannot be reached |
| Inference | inference_requests, inference_prompt_tokens, inference_completion_tokens; the workspace JSON adds a per-endpoint inference section with an estimated marker | workspace only; totals on project and user grouping | per-minute metering buckets whose start falls in the window; counted even after the inference_serving flag is switched off |
Figures are raw seconds and GB on the wire; the web app shows seconds as hours and minutes, the e-mail as hours with one decimal.
CSV
| What | Value |
|---|
| Columns, in order | group_id, group_name, compute_gpu_seconds, compute_cpu_seconds, jobs_runtime_seconds, job_count, instance_runtime_seconds, instance_count, storage_gb, registry_quota_gb, inference_requests, inference_prompt_tokens, inference_completion_tokens |
| Last row | TOTAL (empty group_id), the report-wide totals |
| Content type and file name | text/csv; charset=utf-8; consumption-report_<YYYYMMDDHHMMSS>.csv from the API, consumption-report_<YYYY-MM>.csv as the e-mail attachment |
| Not in the CSV | live registry usage and the per-endpoint inference section (JSON only) |
Monthly e-mail
| What | Value |
|---|
| When | 06:00 UTC on the 1st of every month |
| Window | the previous calendar month in UTC, from its first instant to the first instant of the following month, so consecutive months tile without a gap |
| Recipient | the workspace owner (the user who created the workspace) |
| Content | totals in hours (GPU, CPU, job runtime, instance runtime), job and instance counts, storage GB, registry quota GB, the top 5 projects by combined job and instance runtime, and the CSV with every row attached |
| Default | enabled; a workspace opts out with the switch or PUT .../consumption/email-settings {"enabled": false} |
| Gating | the flag is resolved per workspace, so a workspace override of consumption_reports governs its e-mail in both directions |
| Delivery guarantee | at least once: one send marker per workspace and month; a failed send is retried on the next run; a run that stalls for more than 1 hour loses its claim to the next run; unsent months from earlier periods are retried after the current one |
Reason codes
| Code | HTTP | Meaning |
|---|
feature_disabled | 404 | the consumption_reports flag is off (organisation reports: or organization_tier is off) |
report_window_invalid | 400 | a bound is missing, from is after to, or the window exceeds 366 days |
expected_date_format:... | 400 | a bound could not be parsed |
invalid_group_by | 400 | a grouping the endpoint does not accept |
invalid_format | 400 | a format other than json or csv |
invalid_body | 400 | the e-mail settings body lacks a boolean enabled |
Limits and known behaviour
- Storage and registry figures are point-in-time grants, not historical usage. The platform keeps no size history, so a report for last year shows today's grants, and the figures do not change with the window.
- Job GPU and CPU seconds are a linear proration of whole-job totals; telemetry cannot say when inside a job the usage happened, so a job that was idle for its first half and busy for its second is split evenly between windows that cut it in half.
- A job or instance that touches the window at exactly one instant is counted (in
job_count or instance_count) with zero seconds. A job that ends exactly at a month boundary therefore appears in both monthly reports: with its seconds in the month it ran in, and with zero seconds in the next.
- Under User grouping only jobs have rows; everything else is in the totals.
- Live registry usage is on the workspace JSON report only. The CSV, the organisation report and the operator report carry granted quotas, and the workspace page says so when the live read failed.
- The PDF is produced in the browser from the displayed report; there is no server-side PDF and no PDF through the API or the CLI.
- The e-mail is at-least-once by design: a run that loses its send marker mid-send may lead to a duplicate delivery, which is logged. A month that keeps failing is retried on every later run until it goes through.
- The current state of the e-mail switch cannot be read back; the page shows the default until a change is made.
- Reports hold usage units only, no prices or costs.
- The operator report shows every workspace regardless of per-workspace flag overrides; overrides govern the tenant surfaces and the monthly e-mail.
- Switching
consumption_reports off makes every report route answer 404 feature_disabled, hides the Reports pages and the console page, and makes the monthly run skip every workspace whose effective flag is off. E-mail settings and send markers are kept, so switching the flag back on resumes without re-sending months already sent.
- Planned: nothing is scheduled; a monthly high-water figure for storage, mentioned in the design, was not built in 2.48.6.
Related pages