Supported formats
Each transform accepts one format. You choose it when you create the transform.Counters and gauges
A counter, such as tokens or requests served, only goes up. CostGraph bills each increase. A gauge, such as seats in use or running instances, goes up and down. CostGraph bills a gauge by value and time: 10 seats held for 30 minutes is 5 seat-hours. Price a gauge per unit-hour. OpenTelemetry metrics declare their own type. For Prometheus, choose Metric type on the transform.
Transform setup
A transform is set up in four parts, each on its own tab of the transform:- Mapping turns a sample event into a cost row. Create a transform.
- Cost prices each row. Price usage.
- Send usage shows the endpoint and configuration for your format. Send usage.
- Recent events shows what was accepted and rejected. Fix rejected events.
Requirements
- Membership in the organization to create, edit, or delete transforms.
- A push connection for each source of usage. Create it in Integrations. Refer to Create the connection.
- An API key with the
focus:writescope, created in Settings > API keys.
Next steps
Create a transform
Map a sample event to cost columns and save it.