Before you begin
-
Create a billable metric that filters on an event name and sums
value: - Attach a price to the metric. Price per cent, or divide by 100 in the metric.
- Copy an API key from Settings > Developers.
Connect
1
Connect the account
In Integrations, click Orb and enter the API key. CostGraph
verifies the key against Orb before it saves anything, and stores it
encrypted.
2
Bind an event name
Bind an
orb_ tag key to the event name your metric queries, for example
cloud_cost. Orb keeps the event name inside the metric’s SQL, so
CostGraph can’t list the names for you. Enter it as it appears in the
metric.Tag spend by customer
The tag value must be an Orb external customer id. That is the stable id from your own system that you set on the Orb customer, not Orb’s internal id. Orb reports an unknown external customer id as a validation failure, and CostGraph records the day with that failure instead of billing it.Event payload
Each customer-day is one event. Itsidempotency_key is derived from the day
and the totals, so a retried run counts once. The properties carry value,
the amount in cents, and the shared reconciliation fields.
Corrections are sent as the difference and can be negative. The metric must
sum value for the total to settle.