GASP

Infrastructure Cost per Customer

Infrastructure Cost per Customer: Total infrastructure cost divided by active customers.

Formula

Cost per Customer = Total infrastructure cost / Active customers

Computable definition

The canonical formula in the GASP formula grammar. The MCP server compiles it to SQL over the datasets listed below.

sum(field.cost where field.cost_function = 'infrastructure') / count_distinct(field.customer_id where field.customer_status = 'active') at period_end

Unit: currency

Data requirements

Grain: Per service per interval, aggregate daily · Frequency: Daily · Aggregation: aggregate (day) · Staged: no · Main source: Finance / ERP.

Field Dataset Type
cost cost_event decimal
cost_function cost_event string
customer_id customer string
customer_status customer string
event_date cost_event date
snapshot_date customer date
Example SQL (Postgres)
SELECT (CAST((SELECT COALESCE(SUM(cost), 0) FROM cost_event WHERE event_date >= :period_start AND event_date <= :period_end AND cost_function = 'infrastructure') AS DOUBLE PRECISION) / NULLIF((SELECT COUNT(DISTINCT customer_id) FROM customer WHERE snapshot_date = :period_end AND customer_status = 'active'), 0)) AS infrastructure_cost_per_customer

From an agent: with the GASP MCP server, call lookup_metric({ "name": "Infrastructure Cost per Customer" }) or generate_query({ "metric": "Infrastructure Cost per Customer", "adapter": "<your adapter JSON>" }).

What It Tells You

Unit economics of delivery. Should decrease or stay flat as you scale.

Try searching for:

↑↓navigate↵select