---
title: Getting Started with CI Visibility
description: >-
  Monitor CI pipeline health and performance with traces, metrics, and analytics
  to optimize development speed and reduce costs.
breadcrumbs: Docs > Getting Started > Getting Started with CI Visibility
---

# Getting Started with CI Visibility

{% callout %}
# Important note for users on the following Datadog sites: app.ddog-gov.com

{% alert level="danger" %}
This product is not supported for your selected [Datadog site](https://docs.datadoghq.com/getting_started/site). ().
{% /alert %}

{% /callout %}

## Overview{% #overview %}

CI Visibility, or CI Pipeline Visibility, allows you to monitor the health of your CI pipelines and visualize the performance of your pipeline executions as traces, where spans represent the different levels of the pipeline.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/ci_visibility/pipelines_list.5fb69e014a3a8524b539b28f65c065e8.png?auto=format"
   alt="A list view of your CI pipelines in Datadog CI Visibility" /%}

You can forward CI job logs and automatically correlate them with your pipelines in CI Visibility. Depending on the providers you are using, you can either enable job log collection on the [**Settings** page](https://app.datadoghq.com/ci/settings) in CI Visibility or in your provider's settings to integrate with Datadog.

You can also use the `datadog-ci` CLI to [trace commands](https://docs.datadoghq.com/continuous_integration/pipelines/custom_commands/) in your pipelines, as well as the [custom tags and measures commands](https://docs.datadoghq.com/continuous_integration/pipelines/custom_tags_and_measures/) to add user-defined text and numerical tags in your pipeline traces.

CI Visibility provides DevOps and platform engineering organizations with comprehensive monitoring, analytics, and the ability to pinpoint and resolve bottlenecks, optimize resource allocation, and decrease CI costs.

By integrating performance metrics, logs, and alerts, organizations can improve development speed, increase the reliability of their pipelines, and make data-informed decisions across cloud and self-hosted environments.

## Set up your CI provider{% #set-up-your-ci-provider %}

CI Visibility tracks the performance and results of your CI pipelines, and displays results after the pipeline finishes.

To start sending pipeline metrics, see the documentation for one of the following CI providers that Datadog supports below.

- [aws codepipeline](https://docs.datadoghq.com/continuous_integration/pipelines/awscodepipeline/)
- [azure devops extension](https://docs.datadoghq.com/continuous_integration/pipelines/azure/)
- [buildkite](https://docs.datadoghq.com/continuous_integration/pipelines/buildkite/)
- [circleci orb](https://docs.datadoghq.com/continuous_integration/pipelines/circleci/)
- [codefresh](https://docs.datadoghq.com/continuous_integration/pipelines/codefresh/)
- [github actions](https://docs.datadoghq.com/continuous_integration/pipelines/github/)
- [gitlab](https://docs.datadoghq.com/continuous_integration/pipelines/gitlab/)
- [jenkins](https://docs.datadoghq.com/continuous_integration/pipelines/jenkins/)
- [teamcity](https://docs.datadoghq.com/continuous_integration/pipelines/teamcity/)
- [other ci providers](https://docs.datadoghq.com/continuous_integration/pipelines/custom/)

If your CI provider is not supported, you can programmatically send your pipeline events to Datadog. See the Send pipeline events to Datadog section.

Depending on the CI provider(s) of choice, CI Visibility may not support all of the levels in your pipeline (stage, job, step, or command). For more information about how CI Visibility defines a CI pipeline, see the [Terminology section](https://docs.datadoghq.com/continuous_integration/pipelines/?tab=githubactions#terminology).

## Use CI pipeline data{% #use-ci-pipeline-data %}

Access your pipelines' metrics (such as queue times, durations, percentiles, and statuses) to start identifying important trends and patterns using the data collected across your CI providers.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/ci_visibility/pipelines_dashboard.8dee935bbd1d62c2bd53aa832d5734c4.png?auto=format"
   alt="An out-of-the-box dashboard with widgets displaying data collected from your pipelines, jobs, and stages in CI Visibility" /%}

You can create [dashboards](https://docs.datadoghq.com/dashboards/) to visualize at which points failures are happening in your pipelines, or use an [out-of-the-box dashboard](https://app.datadoghq.com/dash/integration/30516/ci-visibility---pipelines-dashboard) containing widgets populated with data collected in CI Visibility to visualize the health and performance of your CI pipelines, stages, and jobs.

## Search and manage your CI pipelines{% #search-and-manage-your-ci-pipelines %}

The [**CI Pipeline List** page](https://app.datadoghq.com/ci/pipelines) provides a comprehensive view of the performance and reliability of your CI pipelines, for the default branch. Access aggregated statistics, trends, and information about your pipelines to identify and resolve issues like failures and regressions.

To enhance troubleshooting and streamline your pipeline management processes, click on a pipeline to access insights, review execution histories, and pivot to logs and related telemetry data. For more information, see [Search and Manage CI Pipelines](https://docs.datadoghq.com/continuous_integration/search/).

## Examine results in the CI Visibility Explorer{% #examine-results-in-the-ci-visibility-explorer %}

The [CI Visibility Explorer](https://docs.datadoghq.com/continuous_integration/explorer) allows you to create visualizations and filter pipeline spans using the data collected from your CI providers. Each pipeline execution is reported as a trace, which includes stage and job information.

{% tab title="Pipeline" %}
Navigate to [**Software Delivery** > **CI Visibility** > **Executions**](https://app.datadoghq.com/ci/pipeline-executions?query=ci_level%3Apipeline) and select `Pipeline` to start filtering your pipeline span results.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/ci_visibility/pipeline_view.98dd65891b17c765e9ebb25d6ad8b9f7.png?auto=format"
   alt="Pipeline execution results in the CI Visibility Explorer filtered on the Shopist repository" /%}

{% /tab %}

{% tab title="Stage" %}
Navigate to [**Software Delivery** > **CI Visibility** > **Executions**](https://app.datadoghq.com/ci/pipeline-executions?query=ci_level%3Astage) and select `Stage` to start filtering your stage span results.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/ci_visibility/stage_view.f8b2bab92220d6967f60b7858c563285.png?auto=format"
   alt="Stage results in the CI Visibility Explorer filtered on the Shopist repository" /%}

{% /tab %}

{% tab title="Job" %}
Navigate to [**Software Delivery** > **CI Visibility** > **Executions**](https://app.datadoghq.com/ci/pipeline-executions?query=ci_level%3Ajob) and select `Job` to start filtering your job span results.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/ci_visibility/job_view.61cc0eefe607572d1a8ea3de92168cfb.png?auto=format"
   alt="Job results in the CI Visibility Explorer filtered on the Shopist repository" /%}

{% /tab %}

{% tab title="Step" %}
Navigate to [**Software Delivery** > **CI Visibility** > **Executions**](https://app.datadoghq.com/ci/pipeline-executions?query=ci_level%3Astep) and select `Step` to start filtering your step span results.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/ci_visibility/step_view.44b46b419c8f17bcce02cb0a92013924.png?auto=format"
   alt="Step results in the CI Visibility Explorer filtered on the Shopist repository" /%}

{% /tab %}

Use [facets](https://docs.datadoghq.com/continuous_integration/explorer) to customize the search query and identify changes in time spent on each level of your pipeline.

Once you click into a pipeline, you can access individual pipeline executions listed in the **Pipeline Executions** section. When you click on a pipeline execution, you can see a flame graph or a list of spans in the **Trace** tab.

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/ci_visibility/executions.f95f9f1a49116b058f1dbf538ec23400.png?auto=format"
   alt="Pipeline execution results visualized as a flame graph for the Staging Build and Test pipeline" /%}

You can identify bottlenecks in your pipeline and examine individual nodes ranked from the largest to smallest percentage of execution time.

After you have set up Test Optimization, you can access information about tests that were run in your CI pipelines, including the test status (Failed, New Flaky, Passed, or Skipped), on the Test Runs tab in a pipeline execution's side panel. For more information, see the [Flaky Test Management documentation](https://docs.datadoghq.com/tests/flaky_test_management/).

You can access pipeline or job logs across cloud and self-hosted runners and see information about your runners on the Logs tab in a pipeline execution's side panel.

If you are using [supported providers](https://docs.datadoghq.com/continuous_integration/pipelines/?tab=githubactions#supported-features), you can correlate infrastructure metrics with your GitLab jobs and access the GitLab job's host, system, host tags, and host metrics information. For more information, see [Correlate Infrastructure Metrics with GitLab Jobs in Datadog](https://docs.datadoghq.com/continuous_integration/guides/infrastructure_metrics_with_gitlab/).

## Send pipeline events to Datadog{% #send-pipeline-events-to-datadog %}

For other pipeline providers and custom pipelines, you can programmatically send pipeline events to Datadog using the [CI Visibility Pipelines API](https://docs.datadoghq.com/api/latest/ci-visibility-pipelines/). For more information, see [Pipeline Data Model and Execution Types](https://docs.datadoghq.com/continuous_integration/guides/pipeline_data_model/).

Provide the following Git information (the repository URL, commit SHA, and the author email) of the commit that triggered the pipeline execution in the request.

## Create a CI pipeline monitor{% #create-a-ci-pipeline-monitor %}

Alert relevant teams in your organization about pipeline health and performance regressions when failures occur or duration thresholds are exceeded in your CI pipelines with [CI monitors](https://docs.datadoghq.com/monitors/types/ci/?tab=pipelines).

{% image
   source="https://datadog-docs.imgix.net/images/getting_started/ci_visibility/avg_duration_monitor.95afa33d0a43e63ee9693f50620546ea.png?auto=format"
   alt="A CI pipeline monitor configured to trigger an alert when the average duration for the Test and Deploy Cart pipeline exceeds five minutes in the past day" /%}

To set up a monitor that alerts on your CI pipeline when the average duration in the past day exceeds a five minute threshold:

1. Navigate to [**Monitors** > **New Monitor**](https://app.datadoghq.com/monitors/create) and select **CI**.
1. Select a common monitor type for CI pipelines to get started, for example: `Long Running Pipeline` to trigger alerts when a pipeline has been running for too long or `Failed Job` to trigger alerts for job failures, or customize your own search query. In this example, enter `@ci.pipeline.name:test_and_deploy_cart` and select the Avg of `Duration (@duration)`.
1. In the `Evaluate the query over the` section, select **last 1 day**.
1. Set the alert conditions to trigger when the evaluated value is **above** the threshold, and specify values for the alert or warning thresholds, such as `Alert threshold > 300000000000`.
1. In the `Configure notifications and automations` section, configure your monitor's notification settings.
1. Set permissions for the monitor.
1. Click **Create**.

## Further Reading{% #further-reading %}

- [Monitor all your CI pipelines with Datadog](https://www.datadoghq.com/blog/monitor-ci-pipelines/)
- [Best practices for CI/CD monitoring](https://www.datadoghq.com/blog/best-practices-for-ci-cd-monitoring/)
- [Learn about CI Pipeline Visibility](https://docs.datadoghq.com/continuous_integration/pipelines)
- [Learn about CI Pipeline Monitors](https://docs.datadoghq.com/monitors/types/ci)
- [Learn about billing considerations for CI Visibility](https://docs.datadoghq.com/account_management/billing/ci_visibility)
