Choose how the data reaches us
CostGraph pulls it
You supply read-only credentials and we call STACKIT once a day. Nothing to run.
You push it
You send us FOCUS records over the API. Credentials never leave your infrastructure.
Before you begin
- In the STACKIT portal, create a service account and a key for it. The key JSON carries the credentials CostGraph signs its token request with.
- Grant the service account the
cost-management.cost.readerrole on the customer account. - Note the customer account id. STACKIT removed its token flow on 2025-12-17, so the key flow is the only way in.
Let CostGraph pull
- Open Integrations and pick STACKIT.
- Name the connection and pick the tenant these charges belong to.
- Enter the values you copied. The form lists what STACKIT needs and marks the optional ones.
- Select Connect.
cost-management.cost.reader role on the customer
account you export.
CostGraph verifies the credentials with a short fetch before saving, so a wrong
value or a missing permission fails while you are still on the form.
One project per tenant
To show each tenant only its own projects, connect STACKIT once per project and enter that project’s ID as the Project ID. With a project ID set, thecost-management.cost.reader role on that project is enough.
Don’t also connect the whole customer account. CostGraph refuses a whole-account
connection next to project connections, and the reverse, so no project counts
twice. The rule for every provider is in
Split a billing account across tenants.
If no costs appear
If STACKIT returns no costs, the connection shows a warning on the STACKIT page under Integrations. Check that the customer account id is the account your projects are billed to. If your projects sit under a different customer account, connect that one. On a self-hosted installation, STACKIT needs chart v0.9.12 or later.Credentials are encrypted at rest and used only to read billing data. Revoke them in
STACKIT at any time and the connection stops; nothing else is affected.
Push cost data
Send the charges to CostGraph as FOCUS records instead. Push FOCUS data covers the connection id, thefocus:write key, and the request shape.
Run the exporter
Rather than build that request yourself, run our exporter. It reads STACKIT on a schedule and pushes the records for you, wherever you want to run it: a container, a KubernetesCronJob, or a binary on a machine you already have.
If you have STACKIT’s FOCUS report
STACKIT publishes its own FOCUS report, in beta, to an S3-compatible Object Storage bucket aspart_000X.csv.gz, with a new file every million records. Schedule it daily
or monthly; a daily schedule delivers at 12:00 UTC. Ask STACKIT support to enable it.
That report is worth having: it carries a row per resource, where the Cost API we
pull describes spend per project and service. Resource-level rows are what let
CostGraph name the machine behind a charge and compare it against what the same shape
costs elsewhere.
Run the exporter against that bucket and it
reads the report and pushes it, so there is no converter to write and no paging
to get right:
latest-run matters here: STACKIT rewrites a whole billing period on every
scheduled run, so reading every run would count the period once per run. The
exporter reads only the most recent one.
The report covers every project in the organization. To import one project per
tenant, create a connection in each tenant. Then add that project’s ID to the
exporter that pushes to it, and the exporter imports only that project’s rows:
batch_id for the run, with row_offset counting across
the parts rather than restarting at each one.
Two things in that file we repair rather than reject, so you do not need to
pre-process them either way: ChargeDescription is null on every row, and the
service categories are STACKIT’s own names rather than the FOCUS ones.