Choose a cost source
1
Open the Cost tab
On the transform, click Cost, or click Open Cost in the banner.
2
Pick the source
In Cost source, select From the price list, Fixed price, or From
the event. Refer to Cost sources.
3
Fill in the fields
Enter the fields for that source. The preview prices your sample event and
the banner says Ready to save when the cost resolves.
4
Save
Click Save transform.
Cost sources
Price list and fixed prices are in US dollars. If you map
BillingCurrency to
another currency, use From the event instead.
Price list
The price list covers AI models, compute, disks, and databases. CostGraph uses your organization’s prices first, then the public price list, at the rate on the day the usage happened.- Price list selects the kind of usage.
- Rate selects which price to apply, such as the price per million tokens.
Send
PricingQuantityin the unit the hint names. - The fields that identify the price, such as the provider and model for AI
models, take an expression over the event or a quoted constant like
'openai'. Optional fields lists fields that have a default. - Price if nothing matches prices usage that no price matches. Leave it empty to reject that usage instead. Rejected events appear on Recent events.
Next steps
Send usage
Point your service, Collector, or Prometheus at the transform.