Skip to content
dbexplore

Cost

The open cost-data format in plain terms

For anyone who has been handed a cost file in a standard format and needs to know what each column promises before building a report on it.

What FOCUS is, how a row is laid out, why list, contracted, billed and effective cost are separate columns, and how to read a modeled figure.

Reference page, revised in place. Last updated .

Every provider’s file says cost, and means something else

A finance team collects billing files from several providers. Each has its own column names, its own idea of what a charge is, and its own place for a discount. Before anyone can total the database spend across clouds, someone writes a mapping per provider, and the mapping is wrong in ways nobody notices until a number is challenged.

FOCUS exists to remove that mapping work. This guide explains it in plain terms: what it is, how a row is laid out, which columns carry the money, and one rule about billed cost that is easy to miss. It describes version 1.4 of the specification. Check which version a file was produced against, because columns are added between versions and the wording of requirements is revised.

What FOCUS is

FOCUS stands for FinOps Open Cost and Usage Specification. It is an open specification for billing data: a common schema, terminology aligned with the FinOps Framework, and a minimum set of requirements for the data. It is developed in the open by a community of practitioners and vendors, and the FinOps Foundation supports the project. The specification is aimed at three groups: those who generate billing data, those who build FinOps tools, and the practitioners who read the result.

It describes a file, not a product. Whether a particular file follows it is a question about that file and the party that produced it.

A row is a charge

Each row in the main dataset is one charge: usage of a service in a period, a purchase, a tax, a credit or an adjustment. The columns group into a few questions.

  • When. The charge period has an inclusive start and an exclusive end, so a day is written as midnight to the next midnight with no overlap. Billing period columns say which invoice cycle the charge belongs to.
  • What and where. The service name, a service category with values such as Databases, a subcategory such as Relational Databases, and a resource identifier assigned by the provider. The resource identifier is empty when a charge is not related to a resource.
  • Who. The billing account and sub account, and a tags column that carries key and value pairs as a JSON object.
  • How much. Pricing quantity and unit prices, the billing currency, and four cost columns.

A charge category column classifies each row as Usage, Purchase, Tax, Credit or Adjustment, and the money columns behave differently depending on which one it is. For anything the specification has no column for, a custom column is allowed, and its name must start with x_ so it cannot collide with a column added later.

Four costs

Four columns are mandatory, never null, and denominated in the billing currency.

  • List cost is the list unit price multiplied by the pricing quantity, with no discount applied.
  • Contracted cost is the contracted unit price multiplied by the quantity, which reflects negotiated discounts. Without one, it equals list cost.
  • Billed cost is the cost of the charge as invoiced by the invoice issuer in a billing period.
  • Effective cost is the cost based on what was used or recognised in the charge period, including the recognised portion of a prepaid purchase.

They are separate because they answer different questions. The specification describes comparing list against contracted as the value of a negotiation, and contracted against effective as the value of a commitment discount. It describes billed cost as the cash view, used for reconciling an invoice and for cash-based budgeting, and effective cost as the accrual view, used for allocation and forecasting.

The figures below are invented. An instance runs 600 hours at a list price of $0.50 an hour, with a negotiated price of $0.45. Half the hours are on demand and half are covered by a prepaid commitment worth $0.375 an hour of effective cost. The on-demand row reads list $150, contracted $135, billed $135, effective $135. The covered row reads list $150, contracted $135, billed $0, effective $112.50. The prepaid purchase is a row of its own, in the Purchase category, which carries the invoiced amount as billed cost and zero as effective cost. Across a commitment and everything it covers, the specification requires billed and effective cost to sum to the same amount, within the charge period of the covering charges, when both sides are present in the dataset.

What billed cost means

The rule worth remembering sits in the billed cost definition. In version 1.4 the column reflects amounts as invoiced by the invoice issuer. It must not be null. And it must be zero for charges generated by an entity that is not responsible or authorised for invoicing, so that merging datasets does not count a charge twice.

Two consequences follow for anyone reading modeled cost.

First, a number in that column is only an invoiced amount if the producer says it is. Look for the marker that says what a figure is, whether modeled or taken from a bill, and do not total it as cash until you know.

Second, a zero is not free usage. A producer that does not invoice writes zero, and a reader must not read that zero as free. Before totalling a file, check what the producer puts in billed cost on a row no invoice has covered, and how it marks a figure that is modeled.

The same logic explains why the specification keeps list and billed cost apart, rather than offering one cost column. A reader who sees only one number cannot tell whether it is a published price, a negotiated one or a payment.

The limits of the format

FOCUS is a row-per-charge format. It has no column for a database, a workload or a SQL statement. Tags and custom columns can carry that context, and from version 1.3 the specification has columns for a provider’s split of a shared resource, but the detail below the resource is a matter of convention between producer and reader.

The format also does not fix prices or tell anyone how to estimate. Two files in the format can disagree because their producers modeled different things. A file that follows the schema is still only as accurate as the process behind it, and that process is not in the specification. Finally, versions change. A report built on the column semantics of one version should be re-read against the next, in particular the billed and effective cost requirements, which were revised in 1.4.

For the underlying prices and how a rate card resolves them, see how a database rate card works. For the bases a figure can rest on, see how Postgres cost works on a fleet.

Put every Postgres you run on autopilot.

We onboard teams in small batches. Tell us about your fleet and we will reach out when a seat opens. One email, no drip campaign.