- Terraform
- Manual setup
Not supported.
Data Costory imports
Costory maps Datadog billing rows into Standard Columns, so you can compare Datadog spend with AWS, GCP, Azure, and other billing datasources. Costory includes:- Usage-based billing estimates across Datadog products, including infrastructure, APM, logs, and similar usage lines.
- Per-product cost breakdowns. In Explorer, group by Service name to review each Datadog product.
- Historical usage data for trend analysis.
- Final Datadog invoices, taxes, credits, or support fees that Datadog does not expose through its billing and usage APIs.
- Contract-specific pricing terms that are not available through the Datadog APIs.
- Custom metrics pricing beyond what the Datadog usage API exposes.
Why billing_read matters
Datadog usage APIs tell Costory what you used. Datadog billing APIs provide the cost context required to create Datadog billing rows. An API key can passusage_read and timeseries_query checks while Datadog billing endpoints remain unavailable to Costory. When this happens, Costory can read usage or metric data, but it cannot map Datadog usage into costs.
API reference
Costory calls these Datadog Usage Metering API endpoints. The base URL depends on your Datadog site (for examplehttps://api.datadoghq.com for US1). Costory sends your API key and application key on every request.
| Use case | Endpoint | Required scope |
|---|---|---|
| Usage volumes by product family | GET /api/v2/usage/hourly_usage | usage_read |
| Current and previous month cost estimates | GET /api/v2/usage/estimated_cost | billing_read |
| Historical monthly costs | GET /api/v2/usage/historical_cost | billing_read |
hourly_usage returns usage measurements (for example host counts, log volume) that Costory uses to build usage context. estimated_cost covers the current and previous month, with data delayed by up to 72 hours. historical_cost covers earlier months and is typically available by the 16th of the following month.
Billing endpoints (
estimated_cost, historical_cost) may return 403 Forbidden even when usage_read works. This is common for accounts billed through AWS Marketplace or GCP Marketplace. See Missing marketplace billing data.Missing marketplace billing data
In rare cases, customers who subscribe to Datadog through AWS Marketplace or GCP Marketplace cannot access Datadog billing data through Costory’s Datadog connector. The connector can still access usage and timeseries data, but Datadog billing data does not appear in Costory after 24 hours. This means Costory can see what was used, but cannot create Datadog billing rows because thebilling_read scope is blocked or the billing endpoints are unavailable for the account.
This is account-specific and does not mean every has the same limitation. Datadog support can usually confirm the exact reason quickly. If the issue is a Datadog-side bug, they may also provide a workaround that Costory can implement.
Use this checklist before contacting Datadog support:
- Confirm the application key user has the
billing_readscope in Datadog. - Confirm the API key and application key belong to the Datadog site you selected in Costory.
- Ask Datadog support why
billing_readis blocked for your account.
Related
Billing Data overview
Review all billing datasources and shared setup concepts.
Datadog usage metrics
Import Datadog timeseries metrics for allocation and analysis.
Explorer
Explore Datadog costs with the rest of your billing data.
Standard Columns
See how Datadog fields map into Costory’s normalized schema.
