Choose how to import
Let CostGraph fetch the data, or run the import in your own infrastructure.Connect your account
Supply an API key and let CostGraph fetch charges daily.
Run your own import
Keep the Vast.ai key in your environment and send FOCUS records to CostGraph.
Before you begin
Create an API key for the account that rents the instances. In the Vast.ai console, open Keys. The CostGraph connection form also links to key creation.Let CostGraph pull
Open Integrations and select Vast.ai.1
Choose the connection's tenant
Name the connection and select the tenant that owns these charges.
2
Enter the Vast.ai key
Enter the renter account’s API key and select Connect. CostGraph checks
the credentials before saving them and reports a failed check on the form.
3
Check the imported spend
After the import, open your cost overview for the selected tenant and filter
to Vast.ai. Compare daily charges with the same dates in the Vast.ai console.Check GPU, storage, and bandwidth separately. Storage can continue billing
after GPU work stops.
Run the exporter
Run the exporter when you want to keep the Vast.ai credential in your own environment. ConfigureVAST_API_KEY and the CostGraph sink credentials using
Run the exporter.
Start the exporter with the Vast.ai provider and CostGraph sink.
CronJob, or binary. Check the imported spend using the
same comparison described in Let CostGraph pull.
Push cost data
If you already produce FOCUS records, follow Push FOCUS data for the connection ID,focus:write key, and request format.