Profitability
The Profitability page — revenue vs cost per line, the margin each contributes, break-even, and monthly recurring revenue by tenant. Includes what is modeled/seeded versus derived from real state.
Profitability
The Profitability page (/profitability) is the operator's revenue-and-margin view:
revenue versus cost per line, the margin each contributes, where break-even sits, and
recurring revenue by tenant. It requires the profitability.view privilege; without it
the page shows a locked state ("You need the profitability.view privilege to see revenue
and margins."). See the god-mode overview for how the gate works.
What's real vs. modeled. The revenue lines at the top of the page are a hard-coded model — four seeded figures baked into the control plane, not pulled from billing.
getProfit()returns those four seeded lines only in the in-memory (demo) backend and an empty array whenDATABASE_URLis set — so By line is a seeded demo model in demo mode and renders empty in DB mode; it is never populated from billing. The MRR by tenant section is different: it is derived from the plan catalog against each tenant's tier, status, and server count — the same calculation Tenants and Billing use, so those three pages reconcile. The tenant rows themselves are seeded in demo mode and real in DB mode.
KPI row
Four stats summarize the modeled book of business, computed from the revenue lines:
| Stat | How it's computed |
|---|---|
| Revenue | Sum of every line's revenue |
| Cost | Sum of every line's cost, with its share of revenue |
| Gross margin | Revenue minus cost |
| Margin % | Gross margin over revenue — the title badge turns green at ≥50%, amber below |
By line
The By line section ranks each revenue line by absolute margin contribution (richest first). The section subtitle states break-even directly — gross margin on total revenue, with break-even at total cost.
The Revenue vs cost table shows, per line: Revenue, Cost, Margin, and Margin %, with the top-margin line highlighted and a bold Total row footing the table. Alongside it:
- Revenue per line — a bar chart of each line's share of gross revenue.
- A summary card calling out the Top margin line (by absolute margin) and the Thinnest margin (by margin percentage).
The seeded lines are: Managed hosting (Host-first), Licenses (provider-agnostic), Resold VPS margin, and Storage (R2/S3 pass-through) — chosen to reflect the business model, not to report live figures.
MRR by tenant
The MRR by tenant section lists every tenant with billed recurring revenue, highest first, and a badge counting how many are paying. This is the derived part of the page:
- MRR per tenant comes from
tenantMrr()— a non-billable status (trial or churned) is $0, a custom-tier plan is $0, and otherwise it's the plan's monthly price plus per-server overage beyond the included allotment. - The Recurring revenue table shows Tenant, Tier, Status, Servers, and MRR, with past-due tenants highlighted and a Total recurring row footing it.
- MRR share is a bar chart of each tenant's relative recurring revenue.
Because MRR is derived from the same catalog everywhere, a tenant's MRR here matches its figure on Tenants and the totals on Billing.
Related
- Tenants — the customer orgs whose MRR this page sums
- Billing — the plan catalog, subscriptions, and invoices MRR is derived from
- God mode (admin overview) — the RBAC gate and demo-vs-persisted rules