Billing Exports
How the Cost Operator reads your cloud billing export to replace estimated node costs with what you were actually billed.
Billing Exports
DevZero estimates each node's cost from public prices. A billing export replaces that estimate with the amount your cloud actually billed, after Reserved Instances, Savings Plans, CUDs, and private pricing.
| Cloud | Export | Where it lives | Granularity |
|---|---|---|---|
| AWS | CUR 2.0 Data Export | Parquet files in S3 | Hourly |
| GCP | Detailed usage cost export | BigQuery table | Hourly |
| Azure | Cost and usage details (FOCUS) | Parquet or CSV files in blob storage | Daily |
How It Works
- Discovery. Once a day, trezr lists every billing export its identity can see and reports them to DevZero. On AWS it also says whether each export has the columns trezr needs.
- Selection. You pick an export for the cluster in DevZero, under Cost & Resources → Commitments → Billing data. Nothing is read until you do.
- Pick-up. trezr asks DevZero for your choice every 10 minutes, so a new choice starts a read within minutes.
- Read. trezr keeps the rows for this cluster's nodes, including nodes that no longer exist, and sends them to DevZero. On AWS it also keeps NAT gateway rows for the VPCs the cluster's nodes are in (see Network charges). It drops every other row.
- Display. A node with billed rows shows its billed cost. A node without them keeps the estimate. The newest hours always stay estimates until the cloud bills them.
After the first read, trezr reads the export again every 24 hours. It skips data it has already read.
Picking an export is a setting, not a start date. The first read takes in past usage too, including usage from before you picked it. How far back it goes depends on the cloud: AWS reads every month the export holds, GCP reads the current month and the 3 before it (trezr.gcp.billingLookbackMonths), and Azure reads every month unless trezr.azure.billingLookbackMonths limits it.
AWS CUR 2.0
To create the export, see AWS Setup.
GCP BigQuery Billing Export
To turn on the export, see GCP Setup.
Azure FOCUS Cost Export
To create the export, see Azure Setup.