
Connect boxd
1
Create a key for CostGraph
On your computer, as an owner or admin of the organization:The key (
bxd_…) is printed once. Only owners and admins can see usage, so one of them has to create the key.2
Connect it in CostGraph
In CostGraph, open Integrations and pick boxd. Name the connection, pick the tenant the cost belongs to, paste the key into
BOXD_API_KEY and select Connect.You can leave BOXD_ORG empty. A boxd key works in one organization only, so the key already says which one.CostGraph checks the key with a short call before it saves the connection, so a wrong key fails on the form.What CostGraph reads
- Your organization’s usage. What each machine cost: the same usage that
boxd manage usageshows owners and admins (usage and billing). - Once a day. CostGraph calls boxd on your behalf every day.
- Next to your other providers. Your boxd spend appears in CostGraph’s cost overview and anomaly alerts, with every other provider you connected.
The key
- A boxd key is not read-only. It acts as the person who created it, in one organization. CostGraph says it stores keys encrypted and uses them only to read billing data.
- Give CostGraph its own key. Then you can revoke it on its own, at any time, with
boxd auth keys remove costgraph. The connection stops, and nothing else changes. - Keep the key yourself. CostGraph also takes cost data that you push to it, so the key never leaves your infrastructure. See Push FOCUS data in CostGraph’s docs.
Limits
- Recent costs can still change. boxd meters usage with a delay of up to 25 minutes, and a cost marked
(estimated)can still grow. - Owners and admins only. A key created by a member of the organization can’t read its usage.
Bring the cost down
When CostGraph shows a boxd cost you don’t want:- Idle machines. Turn on auto-suspend and auto-hibernate. A machine with no traffic then stops using CPU and memory until a request wakes it.
- Forgotten machines. Give a machine a delete timer when you create it.
- Machines that are too big. Pick a smaller machine size.
Read more
- Integrations in CostGraph’s docs
- API keys: create, list and revoke boxd keys
- Usage and billing: the same numbers in the boxd CLI