> ## Documentation Index
> Fetch the complete documentation index at: https://docs.costory.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Datadog CI Visibility

> Connect Datadog CI Visibility from the same Costory Integrations page as Datadog billing and standard metrics.

Pull CI and pipeline visibility metrics from Datadog into Costory. You use the same **Connect Datadog** page as [standard metrics](https://docs.costory.io/setup/usage-metrics/datadog.md). Pick the **CI / pipeline visibility** card, validate the keys, then query in [Advanced Explorer](https://docs.costory.io/setup/usage-metrics#query-after-you-connect).

![Connect Datadog page with Standard metrics and CI / pipeline visibility selected, ready to save](https://mintcdn.com/costory/7N_qRRx_7ACcj7QT/images/external-metrics/connect-datadog-validated.png?fit=max\&auto=format\&n=7N_qRRx_7ACcj7QT\&q=85\&s=729c8cc09c8ae04aaf74530ffd97318b)

Connect Datadog is the same page for billing, standard metrics, and CI visibility

> [tab] Manual setup
>
> **1. Open Connect Datadog**
>
> Go to [Integrations](https://app.costory.io/integration), click **+ Add integration**, then under **External metric** choose **Datadog**. The tile reads **Standard metrics / CI Visibility**. The connect URL is `/integration/new/datadog/connect`.&#x20;
>
> **2. Pick CI / pipeline visibility**
>
> On **What should Costory use Datadog for?**, pick **CI / pipeline visibility**. You can also select **Standard metrics** or **Billing / spend in Costory** on the same connection.
>
> **3. Enter connection details**
>
> Fill **Connection name**, **Datadog site / region** (for example `datadoghq.com` or `datadoghq.eu`), **API Key**, and **Application Key**. The CI card requires the `ci_visibility_read` scope on the application key. Click **Validate**, then **Save connection**.
>
> **4. Query in Advanced Explorer**
>
> Click **Explore your data**, switch to **Advanced**, then **+ Add Metric**. Open **integrations** and pick Datadog. Provide the CI Visibility query, aggregation, and optional group-by fields.
>
> ![Advanced Explorer Datadog metric picker listing render.service metrics with group-by tags](https://mintcdn.com/costory/7N_qRRx_7ACcj7QT/images/external-metrics/explorer-datadog-metric-picker.png?fit=max\&auto=format\&n=7N_qRRx_7ACcj7QT\&q=85\&s=8b71e191725a68c370ddfed60851c625)
>
> Datadog metric picker in Advanced Explorer
>
> API reference: [Aggregate pipeline events](https://docs.datadoghq.com/api/latest/ci-visibility-pipelines/#aggregate-pipelines-events).
>
> > [!NOTE]
> >
> > Billing and CI visibility are different use cases on the same connect page. Billing creates cost rows. CI Visibility is an external metric. See [Datadog Billing](https://docs.costory.io/setup/billing/datadog.md) if you also want spend.

> [tab] Terraform
>
> Not supported.

## Related pages

> [card] [Datadog standard metrics](https://docs.costory.io/setup/usage-metrics/datadog.md)
>
> Connect the same page and pick Standard metrics.

> [card] [Metrics Correlation](https://docs.costory.io/setup/usage-metrics)
>
> Query after you connect in Advanced Explorer.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.