- Manual setup
- Terraform
- Create a Datadog integration in Integrations (API key, application key, region).
- In Costory, go to Metrics > Import new metrics datasource > Datadog.
- Select the Datadog configuration.
- Provide a metric query with a rollup (example):
avg:system.cpu.user{*} by {host}.rollup(avg, daily, 'UTC')
- Validate and finalize the metrics definition.
This connector imports Datadog metrics only. To import Datadog spend, set up Datadog Billing. A key can have
timeseries_query access while billing data remains unavailable.API reference
Costory queries Datadog metrics through the Metrics API:The base URL depends on your Datadog site (for example
https://api.datadoghq.com for US1). Costory sends your API key and application key on every request.See Query timeseries points for request body fields and response format.