Skip to main content
turns cloud spend into efficiency metrics. Use it when total cost is rising and you need to know whether cost per user, transaction, request, or workload is improving.
Dashboard showing total cloud spend increasing while cost per client decreases

Overview

Costory Explorer lets you combine cost metrics, usage metrics, and formulas in the same chart. Instead of stopping at “compute spend increased”, you can track “cost per active user decreased” or “cost per transaction crossed our target”. Use unit economics when you need to:
  • Explain cloud cost increases in the context of business growth
  • Track cost per customer, API call, transaction, build minute, or container-hour
  • Compare efficiency by team, service, region, or product
  • Report engineering improvements in the same terms finance and leadership use

What you can build

  • Track infrastructure ratios such as cost per GB transferred, build minute, or container-hour by dividing cloud spend by usage metrics from your billing data or Datadog.
  • Track application ratios such as cost per API call, daily active user, or transaction by connecting external metrics from Amplitude, BigQuery, CSV, or Google Sheets.
  • Compare the cost of a new service against the service it replaced by grouping formulas by service tag.
  • Track realized savings from or CUDs by computing list_cost - total_cost.
  • Build custom KPIs for commitment utilization, coverage, and ROI.
You can apply these patterns to hourly granularity for bursty workloads, BigQuery cost visibility with dbt, or allocating shared database costs.

Metric types

Costory’s query bar supports the metric types you need for formulas.
Built-in billing metrics from your connected cloud providers. These include total cost, , list cost, and usage quantity.

Prerequisites

To build formulas from business or application activity, connect at least one usage metrics source. Supported sources include:
You can still use formulas without external metrics. Combine cost fields with usage metrics from billing data, such as cost per GB-Hour, without connecting another source.

Create a unit economics formula

1

Open Explorer

Navigate to Explorer and configure the cost query you want to analyze.
2

Add metrics

Click + Add Metric in the query bar to add a cost metric, usage metric, or external metric. Each metric gets a letter label that you reference in formulas.
3

Add a formula

Click + Add Formula and write your formula with the metric labels.Examples:
  • If metric a is total cost and metric b is GB-Hours, a / b gives you cost per GB-Hour.
  • If metric a is total cost and metric b is Daily Active Users, a / b gives you cost per DAU.
Formula editor combining total cost divided by usage metric to produce cost per unit over time
Formulas support +, -, *, /, and parentheses. For rolling averages or conditional logic, pre-compute the metric in your source system before importing it.
4

Visualize the result

The chart updates to show the formula over time. Switch chart types and toggle between raw metrics and the formula output.
Cost per DAU trending down while total cloud spend increases
5

Save and share

Save the query as a dashboard widget so you can revisit it, share it with Quick Share, or schedule it as a Cost Report.
Formulas respect your group-by dimensions. If you group by team and define cost / daily_active_users, Costory returns a separate cost-per-DAU value for each team.
You can set threshold alerts on any formula. If cost per request exceeds your target, Costory sends a notification through Slack or email. Configure thresholds in cloud cost alerts.

Frequently asked questions

Connect a usage metric such as DAU from Amplitude or transactions from your database. In Explorer, create a formula that divides cloud spend by that metric. For a full walkthrough, see cost per active user with Amplitude.
Yes. If you group by a dimension such as team or service, the formula is applied per group. This lets you compare unit economics across teams, services, or products.
Formulas support arithmetic operators (+, -, *, /) and parentheses. Each metric is referenced by its letter label. Formulas operate on the aggregated value per time bucket.
Yes. Save the formula and create an alert from it. Use this for targets such as cost per request, cost per active user, or cost per build minute.

Explorer

Build the base cost queries for unit economics.

Usage metrics setup

Connect business and application metrics.

Events

Add timeline context to cost changes.

Cost per active user

Follow a worked example with Amplitude.
Last modified on June 24, 2026