How it fits together
- A virtual tag decides which customer each charge belongs to. You write the rules; every value the tag produces is an Autumn customer id.
- A meter binds that tag key to one meter in your Autumn account. Each night CostGraph reports every customer’s attributed spend for each settled day to that meter.
- Autumn prices and invoices. Attach a price to the meter in Autumn and your customers are billed for exactly the spend CostGraph attributed to them.
Connect
1
Copy a secret key
In your Autumn dashboard, open Developer -> Secret keys and copy a key.
Use a live key to bill for real; a sandbox key exercises the whole flow
without invoicing anyone.
2
Connect in CostGraph
Open Integrations, choose Autumn, and paste the key. CostGraph
verifies it against Autumn before saving anything, and stores it encrypted.
3
Bind a meter
Bind a virtual tag key to one of your Autumn meters. Until the meter
screens land in the dashboard, this step is done through the CostGraph API;
the connect screen is the part you use today.
Choose who gets billed
Create a virtual tag key named with anautumn_ prefix, such as
autumn_customer. The prefix is required: it marks the key as billing-bound,
and only prefixed keys can be bound to a meter. Give it values that are your
Autumn customer ids, and only the customers you bill. Spend the tag does not
match is never reported.
The match is the tag value itself: whatever value a rule assigns is the Autumn
customer id the spend is reported under. If your customer in Autumn is
acme-corp, write a rule whose Tag value is acme-corp:
Any field works as the match: a linked account per customer, a resource name
prefix, a project, or an existing tag. One rule per customer is the common
shape; see Virtual tags for the rule builder
and how overlapping rules resolve.
To trace how a charge was attributed, follow the same path the export takes:
the charge matches a rule on the
autumn_ key, the rule’s tag value names the
Autumn customer, each day’s matched spend is summed per value, and the nightly
run reports each sum to the meter under that customer id. Group the key on the
cost overview to see exactly what each customer will be billed before it is
reported.
Because a bound tag key drives invoices, CostGraph protects days that were
already reported: rules on that key cannot be reordered, and new or edited
rules must start from a date that has not been reported yet. Close an old rule
with an end date instead of editing it in place.
What lands in Autumn
Each customer-day is one usage event on your meter, carrying properties you can group by in Autumn:Cloud providers restate recent spend, so CostGraph holds each day for two days
before reporting it, then keeps reconciling the last 35 days. Autumn bills
every event into the customer’s current cycle, so a correction to an old
day shows up on the next invoice -
usage_date is how you and your customer
see which day it belongs to.Day to day
- The nightly run reports only what changed, so an unchanged day sends nothing.
- A day is held back rather than reported wrong when its spend mixes currencies, or a quantity meter meets an unexpected unit. Each held day is recorded with its reason.
- Deactivating a meter stops reporting but keeps its history, so reactivating resumes from what was already sent instead of double-billing the window.
Next steps
Virtual tags
Write the rules that decide which customer each charge belongs to.