Skip to main content
Revenue alone cannot tell you whether a customer is profitable. Cost Insights joins the revenue Ruba already knows with the cost of serving that customer, producing cost, profit, and lifetime-value metrics.
Cost Insights is in beta and can be enabled from organization settings.

Data path

  1. Your application ingests a usage event with a reserved _cost object in its metadata.
  2. Ruba attributes and aggregates that cost alongside orders and subscription revenue.
  3. You inspect cost, profit, and customer LTV through Analytics or the Metrics API.
The example records a $0.00025 cost in cents for one inference event.

Costs worth attaching

  • Model-provider calls in AI products
  • Compute, storage, and bandwidth consumed by a customer
  • Per-message email or SMS charges
  • Any third-party unit cost that can be attributed to an event

Continue the implementation

Shape cost events

Validate the _cost object and choose the event identity.

Read profitability

Query cost, profit, and lifetime-value metrics.