Unit economics
A unit metric divides a cost figure by a usage number to produce a ratio such as cost per order, cost per 1,000 API requests, infra cost per customer. Plutus doesn’t compute the two halves itself: the cost side comes from the same cost data as the rest of the account, and the usage side comes from usage ingestion, telemetry your own backend pushes in, or from a pull-based usage source such as Stripe metered billing, Orb, or Metronome. A unit metric only reports numbers for periods where both sides are present. You need usage data flowing in for a metric before you can build a unit-economics ratio off it.
Editing or saving a unit metric needs the admin role. Reading the ratios is open to any role.
There are two modes, depending on what the denominator represents.
Mode A: total
Section titled “Mode A: total”Divide one cost scope by the total usage of one metric, for a fixed period (hour, day, week, month, or quarter). Hour is available only for ranges of 7 days or less. The cost scope is one of:
- The whole account
- One cost source (AWS, Anthropic, Snowflake, etc.)
- One tag value (see Virtual tagging & cost allocation). A tag-scoped cost includes that tag’s splits and any proportional redistribution, so it can be higher than a raw service or account total for the same resources.
Example: you push an orders metric via usage ingestion, one row per day with the day’s
order count. You define a unit metric: AWS cost ÷ orders, scoped to the AWS cost source.
| Day | AWS cost | Orders | Cost per order |
|---|---|---|---|
| Mon | $840.00 | 2,100 | $0.40 |
| Tue | $912.00 | 2,280 | $0.40 |
| Wed | $790.00 | n/a (not received yet) | n/a |
Wednesday shows a real cost figure but no usage figure yet, so the ratio is empty (null), not $0.00 or a number computed against zero orders. See Null periods below. This is expected, not an error.
Mode B: per-customer
Section titled “Mode B: per-customer”Divide a tag-scoped cost by usage attributed to that same tag value, matched to an external
customer ID. This mode requires a tag-scoped numerator: the numerator is cost for one
tag_value under a tag_key you’ve defined rules for, and the denominator is usage rows whose
external_customer_id (pushed via usage ingestion) matches that same tag value.
The mapping is a convention, not a schema constraint: you name the tag value after the customer
identifier your backend already sends. If your cost_tag_rules tag customers by account slug
(acme-corp, initech), your usage-ingestion payload needs to push acme-corp and initech as
external_customer_id values for the match to work.
Example: you tag infrastructure cost by customer (tag_key = customer, values like
acme-corp), and push a seats usage metric per customer. The unit metric divides tagged cost
by seat count per customer:
| Customer | Tagged cost | Seats | Cost per seat |
|---|---|---|---|
| acme-corp | $1,240.00 | 40 | $31.00 |
| initech | $650.00 | 0 (no usage rows this period) | n/a |
Because the mapping depends on both sides agreeing on the same identifier, mismatches are common enough that Plutus reports them explicitly rather than silently dropping rows. The response breaks customers into three sets:
- Matched: cost and usage both present and paired.
cost_without_usage: a tag value has cost but no usage rows matched it. Usually means the usage-ingestion payload isn’t sending that customer’s ID yet, or the ID doesn’t match the tag value exactly.usage_without_cost: usage rows arrived for a customer ID with no matching tagged cost. Usually means the tag rule for that customer doesn’t exist yet, or was scoped differently.
The three sets are computed over the whole date window, not per period. A customer counts as matched if it has both cost and usage anywhere in the window, even if some individual periods have only one side.
Use these sets to fix the mapping rather than treating a missing ratio as a bug in the feature.
Null periods are not zero
Section titled “Null periods are not zero”A period with no usage data reports the ratio as empty (null), never 0 and never an error. This
matters because a $0.00 cost-per-unit would assert something false, that the ratio is
genuinely zero, when what actually happened is that usage telemetry hasn’t arrived for that
period, or the customer-ID mapping in Mode B doesn’t line up yet.
The same rule applies in the other direction: a period with cost data but literally zero usage rows (not just rows not yet received) also reports empty, since dividing by zero has no meaningful answer either.
A period with no cost data at all also reports empty for the cost side, for the same reason: a sync that hasn’t landed yet is not a period that cost nothing.
The newest period can be missing for a different reason. Cost data arrives hours to a day after usage, so Plutus trims the end of the window to the point every contributing cost source has reported. A trailing period may not appear yet, or may show a partial period (a month-to-date ratio, for example). Both halves are trimmed at the same instant, so the ratio isn’t skewed. Gaps in the middle of a series are never trimmed; those are real missing data.
If you see an empty ratio where you expect a number, check:
- Whether the usage-ingestion connection for that metric is actually sending data for the period in question.
- In Mode B, whether the
external_customer_idvalues in your usage payload match the tag values in your cost-tagging rules exactly.
Currency
Section titled “Currency”The cost side of a unit metric follows your account’s display currency. The underlying figure converts the same way any other cost chart does. The usage denominator is a count, not a currency amount, and is never converted. A “cost per order” ratio shown in EUR means the cost numerator was converted to EUR before dividing; the order count itself is unaffected by currency settings.
Billed or amortized cost
Section titled “Billed or amortized cost”Unit economics defaults to billed cost. The Billed / Amortized control above the chart switches the cost side to amortized cost for every cost scope. Billed is what each provider charged in the period. Amortized spreads prepaid commitments across the term they cover. See Billed vs. amortized cost for the distinction.
Budgets, spend limits, and alerts, including unit cost target alerts, always use billed cost. An amortized ratio can therefore differ from a budget on the same tag, and the page says so when you view a tag-scoped metric on amortized cost.
Unit cost targets
Section titled “Unit cost targets”A metric can have an optional Target unit cost, entered in USD in the metric form and drawn converted to your display currency. It shows as a “Target $X” line on the chart. For a blended metric the line sits on the unit cost ratio. For a per-customer metric it appears only when the chart’s Measure is Unit cost.
A target also drives an alert. Subscribe a channel to the Unit cost targets trigger (see Budgets & alerts). The rules:
- A daily check takes the trailing 7 complete days, sums cost and usage separately, and divides once. Days with no usage are left out of both sums.
- It alerts once per breach. The marker clears when the unit cost is back at or under the target, or when you edit the target or the metric’s definition, so a changed target can alert again.
- Blended metrics are checked as one series. A per-customer metric is checked per customer (or per feature, when the metric uses Group usage by), each held against the same target. A series needs at least 3 measured days in the trailing 7 to be judged. A series with fewer is neither breached nor recovered.
- Each series alerts once per breach. Per-customer metrics are judged on the top 50 series by cost, and at most 3 notifications go out per metric per daily run, worst overage first. A series past the cap alerts on a later day once a slot frees up.
- It uses billed cost, whatever the Billed / Amortized control is set to.
Example (sample data): a metric with a $0.50 target per 1,000 requests. Over the last 7 complete days it summed $4,200 of cost and 7,000,000 requests, a unit cost of $0.60 per 1,000. That is above the target, so subscribed channels get one message. It stays quiet on later days until the figure has come back to $0.50 or less.
Unit cost spike alerts
Section titled “Unit cost spike alerts”The Alert on unit cost spikes checkbox in the metric form turns on a daily check of the metric’s own unit cost. It needs a channel subscribed to the unit cost anomalies trigger (see Budgets & alerts). The rules:
- The check reads the last 35 days of daily unit cost and compares the newest complete day with the same weekday in earlier weeks. When there aren’t enough same-weekday days, it falls back to the trailing days.
- It alerts on rises only. A falling unit cost is never reported.
- A day with no unit cost (no usage, or no cost yet) is skipped, not filled in as zero. A zero would pull the baseline down and make the next real day look like a spike. If the newest complete day has no unit cost, that series isn’t checked.
- Two guards stop a tiny denominator from producing a false spike. The day’s cost must exceed a small absolute floor, and the day’s quantity must be at least half the mean quantity of the baseline days. A drop in volume that raises the unit cost is a fixed-cost effect, not an efficiency regression, and is left to the chart.
- A per-customer metric is judged per customer (or per feature). Only the top 50 series by cost are checked, at most 3 notifications go out per metric per run (largest implied extra spend first), and a series that alerted doesn’t alert again for 3 days.
- It uses billed cost. It doesn’t create timeline events and doesn’t honour anomaly suppressions.
Example (sample data): a metric on cost per 1,000 requests has a usual Wednesday figure of $0.40. On a Wednesday it comes in at $0.70, with request volume near normal and more than the cost floor spent that day. That is 75% above the baseline, so subscribed channels get one message. If the same Wednesday had a tenth of the usual requests, the volume guard would suppress the alert.
Cost per feature
Section titled “Cost per feature”On a per-customer metric, Group usage by takes a dimension key that your
usage ingestion payload pushes, such as feature.
Plutus then groups the usage side by that dimension’s values instead of by external_customer_id,
and matches the tag values on the cost side to those values. With a feature tag key whose
values are search and export, and usage rows carrying feature = search or export, you get
one unit cost per feature. Usage rows without that dimension are left out. A tag value with no
matching dimension value shows up under cost_without_usage, the same as an unmatched customer
in Mode B. The usage side keeps up to 500 dimension values per query.
Gross margin
Section titled “Gross margin”A unit metric can report gross margin when it has revenue sources. In the metric form, tick one or more under Revenue sources (optional). The valid sources are the Stripe (Revenue) and NetSuite (Revenue) usage sources, which are connected like any other usage source. The option is empty until one is connected on your account.
Plutus then adds revenue and gross margin to the chart, calculated as (revenue minus cost) divided by revenue, times 100. In per-customer mode there is a Margin column. A metric with no revenue sources has no margin.
- Margin is empty (null), not 0%, for a period with no revenue rows or with zero revenue. A 0% margin would claim the period broke even.
- Per-customer margin needs the customer ID field set on the revenue source, so each revenue row can be matched to a customer.
- Stripe (Revenue) reports money collected: paid invoices less credit notes, bucketed by the day of payment. It isn’t recognised or deferred revenue. It also misses an invoice that was created more than 45 days before it was paid, such as an annual invoice finalised months ahead.
Example (sample data): a customer has $1,000 of Stripe revenue and $250 of attributed cost in a month. Gross margin is (1,000 - 250) / 1,000 = 75%. A customer with $250 of cost and no revenue rows in the month shows an empty margin.
What changed since the last interval
Section titled “What changed since the last interval”The stat strip shows Unit cost, Cost latest interval, and the usage metric’s latest interval, each with a “+N% vs previous interval” change. The comparison uses the two newest periods that both have a ratio. A falling unit cost is shown as the good direction. If either period has no ratio, the change is absent rather than computed against nothing. The change names whether cost or usage moved more, by absolute change.
Chart forms and customer insights
Section titled “Chart forms and customer insights”In blended mode the chart draws cost as bars, with the usage count and the unit cost ratio as lines over them. A ratio is never stacked.
In per-customer mode, the chart form is Over time or Plane. The plane is a scatter of cost against usage with one point per customer, and dashed rays of constant unit cost. Measure can be Unit cost, Cost, Share, or Requests.
The customer table adds:
- Share of attributed cost.
- Efficiency, labelled “Lowest unit cost” or “Highest unit cost”. It appears only when two or more customers have a ratio.
- The unit cost change between a customer’s last two measured periods.
- Sorting by cost, unit cost (high to low or low to high), biggest unit cost increase, biggest increase, or name.
A metric whose cost source was removed shows as “
Exporting to CSV
Section titled “Exporting to CSV”The chart and the customer table each have an export menu with a CSV option. The series export has one row per period (and per customer in per-customer mode) with cost, quantity, unit cost, and revenue and gross margin when the metric has revenue sources. Money columns are in your display currency, and a currency column names it. Empty cells mean one half of the ratio was missing, not zero.
Saved views
Section titled “Saved views”The Saved views menu stores the metric, window and interval, cost basis, measure, chart form
and chart type, either personal or shared with the account. A view whose metric was deleted still
applies the rest of its settings. Saved views can’t be pinned to a dashboard. Saving needs the
member role, and any role can open one.