Elastic Cloud
Connect your Elastic Cloud organization to track deployment capacity, storage, and data transfer costs in StackSpend.
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. It converts ECU consumption using your configured ECU list price and optional uniform discount. The initial request covers up to 90 days where available; provider reporting and scheduled sync determine freshness.
What StackSpend tracks
- ECU consumption and converted USD per deployment
- Capacity (compute) consumption
- Storage consumption
- Data transfer (data in, data out, internode)
- Available historical periods, refreshed through scheduled sync
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
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. The Billing admin role may grant broader authority than the connector uses.
Copy the API key immediately — Elastic shows it only once.
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.
Add to StackSpend
In StackSpend, go to Providers → Elastic Cloud. Enter your API Key and Organization ID. Click Save.
Data summary
| Attribute | Value |
|---|---|
| Data latency | Provider reporting plus scheduled sync |
| Historical data | Up to 90 days where available |
| Setup time | 5 min |
Frequently asked questions
Can I see which Elastic deployment changed?
The connector supplies deployment and cost-dimension consumption from the Billing Costs API. It converts ECU using a configured list price and optional uniform discount; verify these assumptions before comparing dollars with your invoice.
Is a Billing admin key the same as a read-only key?
No. The connector's read behavior and the permissions carried by the key are separate. Review the documented role and your security requirements before sharing a credential.
Can this explain an individual expensive search query?
A billing breakdown does not establish query-level root cause. Use the deployment and cost category that changed to guide a deeper investigation in your own observability tools.