Connect Datadog in Costory Integrations for billing, standard metrics, and CI visibility. Query standard metrics with rollups in Advanced Explorer.
Connect Datadog from Add integration for billing, standard metrics, and CI visibility. Pick at least one use-case card, then validate the keys.This page covers Standard metrics. For Datadog spend in Explorer, see Datadog Billing. For pipeline metrics, see Datadog CI Visibility.
Connect Datadog: use-case cards on the left, Connection details on the right
Manual setup
Terraform
1
Open the Datadog tile
Go to Integrations, click + Add integration, then under External metric choose Datadog. The tile reads Standard metrics / CI Visibility. The connect URL is /integration/new/datadog/connect.
2
Pick at least one use case
On What should Costory use Datadog for?, pick at least one card:
Billing / spend in Costory: see Datadog billing data in Costory. Setup details live on Datadog Billing.
Standard metrics: use Datadog metrics in Costory to calculate marginal costs and correlate usage with spend.
CI / pipeline visibility: pull CI Visibility aggregations. See Datadog CI Visibility.
3
Enter connection details
Fill Connection name, Datadog site / region (for example datadoghq.com or datadoghq.eu), API Key, and Application Key. Click Validate, then Save connection.
Connect Datadog after Validate succeeds: Save connection is enabled
4
Query a metric with a rollup
In Advanced Explorer, click + Add Metric, open integrations, and pick Datadog. Search a metric name, then pick it from the list. Provide a query with a rollup, for example:avg:system.cpu.user{*} by {host}.rollup(avg, daily, 'UTC')Use Edit DataDog query on the series row if you need to change the query string. See Query after you connect.
Cost series next to a Datadog render.service.http.requests.total metric
One Datadog connection can cover billing and metrics. Billing creates cost rows. Standard metrics and CI Visibility are external metrics, queried in Advanced Explorer. Classic greys out non-cost metrics. Costory validates each selected scope when you click Validate. A key can have metrics_read and timeseries_query while billing data remains unavailable.
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. Enable the matching capabilities under Organization Settings > Application Keys. Costory validates each selected scope when you click Validate.See Query timeseries points for request body fields and response format.