Stack SpendDocs

Elastic Cloud

Connect your Elastic Cloud organization to track deployment capacity, storage, and data transfer costs in StackSpend.

E

Elastic Cloud

Billing Costs API — Organization API key required

The Elastic Cloud provider connects StackSpend to your organization via the Elastic Cloud Billing Costs API. StackSpend backfills up to 90 days of cost on first sync, then updates daily as new charges are finalized.

What StackSpend tracks

  • Cost per deployment
  • Capacity (compute) charges
  • Storage charges
  • Data transfer (data in, data out, internode)
  • 90 days of historical data, updated daily
Note.Elastic Cloud bills at the organization level. StackSpend reads costs per deployment and breaks each day down by dimension so you can see whether capacity, storage, or data transfer drove a change.

Prerequisites

  • Elastic Cloud Organization owner access (only owners can create API keys)
  • An API key assigned the Billing admin role
  • Your Elastic Cloud Organization ID

Setup

1

Create an API key

Sign in to cloud.elastic.co as an Organization owner. Select your avatar (top-right) and go to Organization → API keys → Create API key. Give it a name and expiration, and assign the Billing admin role — this is what grants cost/billing read access.

Copy the API key immediately — Elastic shows it only once.

2

Get your Organization ID

From the same Organization page (avatar → Organization), copy your Organization ID — the numeric ID shown there, which also appears in the console URL on organization pages.

3

Add to StackSpend

In StackSpend, go to Providers → Elastic Cloud. Enter your API Key and Organization ID. Click Save.

Data summary

AttributeValue
Data latencyDaily
Historical data90 days
Setup time5 min

Frequently asked questions

What Elastic Cloud credentials does StackSpend need?

StackSpend needs an organization-level API key assigned the Billing admin role, which grants read access to the Elastic Cloud Billing Costs API. Only Organization owners can create the key, and you also supply your numeric Organization ID.

Is the Elastic Cloud connection read-only?

Yes, StackSpend only reads cost data through the Billing Costs API and never writes to your Elastic Cloud organization. It breaks each deployment's cost down by capacity, storage, and data transfer.

How long does Elastic Cloud setup take?

Setup takes about 5 minutes: create the Billing admin API key, copy your Organization ID, and add both to StackSpend. The first sync backfills up to 90 days of cost, then updates daily.

Why don't I see cost data yet?

Make sure the API key was assigned the Billing admin role, since that is what grants cost/billing read access. Elastic Cloud bills at the organization level and StackSpend reads costs per deployment, updated daily as new charges are finalized.

StackSpend Docs