Monitoring GitHub Actions with Datadog CI Visibility

For GitHub Actions workflows, simply creating a GitHub App and enabling repositories lines up execution time and wait time in Datadog CI Visibility. Job logs, runner host values, and classification of failure causes can be added as tiers in the order you need them.

What a GitHub App Alone Shows, and What Adding More Brings

Viewing GitHub Actions workflows in Datadog finishes its first tier once you create a GitHub App and enable repositories, and from there you stack only as many tiers as you need. With the first tier alone, pipeline execution time, queue time, approval wait time, and running pipelines and jobs appear on screen. When you want to read inside a failed job, add job logs. When you want to see the relationship to runner resources, place the Agent on the runner hosts (as of October 2026; source: GitHub Actions Setup for CI Visibility).

Tiers you stack in CI Visibility for GitHub Actions (as of October 2026)
TierSetting to addWhat you seeQuestions it answers easily
1. GitHub App and enablementA GitHub App (Actions: Read Only) and enabling the account or repositoriesExecution time, queue time, approval wait time, running pipelines and jobs, partial retriesWhich workflow is slow, and where it waits
2. Job logsThe Enable Job Logs Collection toggleJob logs (forwarded to Log Management)What the failed job output
3. Infrastructure valuesThe Datadog Agent on the hosts where jobs runHost metrics opened from a job's spanWhether runner resources were saturated when it was slow
4. Failure analysisTier 2 logs (both failures and successes in the index)Summaries and classification of failure causesWhether a failure is on the code side or the CI platform side
Source: GitHub Actions Setup for CI Visibility / Use CI jobs failure analysis to identify root causes in failed jobs

Tiers 3 and 4 are independent of each other, and you can add either one first. On the other hand, failure analysis in tier 4 requires job log collection to be enabled, so you cannot use it if you skip tier 2. If you only want to grasp trends in execution time, tier 1 is enough, and no log charges arise either. Because what you see and where the charges come from are separated by tier, you can decide what to enable first by asking "do I want to see slowness, or read the reasons for failures?"

The Only Permission the GitHub App Needs Is Read Access to Actions

A private GitHub App created for Datadog collects workflow information. If you already have a GitHub App for Datadog, there is no need to recreate it; confirm that the App has Actions: Read Only and then proceed to enablement. When creating a new one, start from the Datadog GitHub integration tile and proceed in the following order. On the permissions screen, grant Actions: Read Only (as of October 2026; source: GitHub Actions Setup for CI Visibility).

  • On the GitHub integration tile, click + Create GitHub App
  • Choose a personal account or an organization account, and enter the GitHub organization name
  • Choose the Datadog features to enable with this GitHub App
  • Under Edit Permissions, grant Actions: Read Only
  • Finish creation on the GitHub side with Create App in GitHub, and give the App a name (for example, Datadog CI Visibility)
  • Click Install GitHub App and install it following GitHub's prompts
Source: GitHub Actions Setup for CI Visibility

Supported GitHub versions are GitHub.com and GitHub Enterprise Server (GHES) 3.5.0 and later (the minimum as of October 2026). For organizations whose Datadog site is app.ddog-gov.com or us2.ddog-gov.com, the documentation states that this feature itself is not available. Checking your organization's Datadog site before you start avoids rework. Note that opening lines of repository code from a stack trace falls under a different feature. That is handled by Source Code Integration, which connects Git repositories to Datadog (source: Source Code Integration).

You Can Enable It for the Whole Account or per Repository

Once the App is installed, choose GitHub under Software Delivery > CI Visibility > Add a Pipeline Provider in the Datadog UI. Next, click Enable Account for the target account. To cover the whole account, turn on the Enable CI Visibility toggle; to cover only some, scroll down the repository list and toggle them individually. Pipelines appear right after you enable them, but values fill in on the CI Pipeline List and Executions pages only after a pipeline finishes. The CI Pipeline List shows only each repository's default branch (as of October 2026; source: GitHub Actions Setup for CI Visibility).

Product names that appear in the official documentation (as of October 2026)
NameWhat it refers to
CI VisibilityThe product that collects the results and performance of CI pipelines in Datadog
Pipeline VisibilityThe part of CI Visibility that handles pipelines (setup steps for each CI provider are here too)
Test OptimizationThe product that handles the test execution side
CI/CD OptimizationThe unified UI that combines CI Visibility and Test Optimization, switched to from Try It Now as of October 2026 (Switch Back returns you)
Software DeliveryThe menu section where these appear
Source: Continuous Integration Visibility / CI/CD Optimization

To stop it, open CI/CD Optimization > Settings > GitHub Actions, select the account, and turn off the overall toggle or turn it off per repository. Two names, CI Visibility and CI/CD Optimization, appear in the setup steps because the official documentation presents the unified UI in a form you can try with Try It Now. Writing both names side by side in your internal runbook keeps people from getting lost, whether they use the classic UI or the unified one.

Sending Job Logs Gets Failure Causes Classified

Job log collection is turned on with the Enable Job Logs Collection toggle on the same screen as enablement, and right after you toggle it, job logs are forwarded to Log Management. Logs carry the tags datadog.product:cipipeline and source:github, so you can write routing for indexes and retention periods with these tags. Log files that are too large are truncated (as of October 2026; source: GitHub Actions Setup for CI Visibility). Logs are billed separately from CI Visibility, so check your volume estimate with the explanation of log billing. Once logs arrive, CI Visibility reads the logs of failed jobs with an LLM, produces an error message that explains the cause, and classifies it. What it reads are lines that were not present in past successful runs of the same job, and you can check them in Log Explorer with @relevant:true.

Top-level failure classification (domain)
domainWhere the cause liesWho typically fixes it
codeThe code itself that the pipeline builds and testsThe developer who changed that code
platformOutside the code, such as the CI provider, infrastructure, or external dependenciesThe team that owns the CI system as a whole
unknownThe cause is not clear from the logsDecided by reading the logs
Source: Use CI jobs failure analysis to identify root causes in failed jobs

This analysis requires that all logs of the failed job, plus at least one run's worth of logs from a successful job with the same job name, pipeline name, and repository, be in the index. If you want to keep log volume down, the official documentation has an example of an exclusion filter that samples successful job logs per @ci.job.id, and for pipelines where successful jobs run enough times, this form remains compatible with the analysis. Classification results can be filtered with the @error.domain and @error.subdomain facets, so if you look for pipelines with continuing platform failures, you can see where action is needed on the CI platform side.

A Datadog Pipeline Is a GitHub Workflow

Before reading the screens, align the correspondence of names. In the official documentation's mapping table, a Datadog Pipeline corresponds to a GitHub Actions Workflow. Job and Step correspond under the same names on both sides (as of October 2026; source: GitHub Actions Setup for CI Visibility). In other words, when you open one pipeline execution in Datadog, it is one run of a GitHub workflow, with jobs and steps lined up inside it. When reading slowness, distinguishing which unit a time value is attached to makes it easier to narrow down the cause.

Time values for reading slowness, and one way to read them (as of October 2026)
ValueDescription in the official documentationWhat to suspect when it is long
Execution timeThe time the pipeline was executing jobsThe contents of the job, or runner resources
Queue timeThe time a job stayed in the queue before processingThe number of available runners
Approval wait timeThe time workflow runs and jobs waited for manual approvalThe approvers' procedures
RunningPipelines that are queued or waiting are also shown as RunningMiscounting when counting unfinished runs
Source: GitHub Actions Setup for CI Visibility

The third column is one way I read these values, not something stated in the official documentation. For example, if in a week when whole workflows became slow, execution time stayed the same and only queue time grew, you would look first at runner allocation rather than the code. When looking for jobs that extend the overall time, the official documentation also lists a feature that filters down to only the jobs on the critical path. Because you can exclude jobs running in parallel whose shortening would not shrink the total, it gives you material for deciding the order in which to tackle jobs.

The Condition for Overlaying Runner Values Is an Agent on the Hosts Where Jobs Run

To tie jobs to infrastructure values, the Datadog Agent must be running on the hosts that execute the jobs. The configuration beyond that splits by runner type, and runners run with Actions Runner Controller need no additional configuration. For other types, matching the GitHub runner name to the machine's hostname ties the job to the host that ran it (as of October 2026; source: GitHub Actions Setup for CI Visibility).

Additional configuration by runner type (as of October 2026)
Runner typeCondition for tying jobs to hostsWhat to watch for
Actions Runner ControllerNo additional configurationJobs shorter than the Agent's minimum collection interval may show no metrics
OthersMatch the runner name to the machine's hostnameWhether the match holds when you rename runners
Source: GitHub Actions Setup for CI Visibility

The Actions Runner Controller caveat comes from the relationship between the Agent's collection interval and job length. The official documentation shows how to set min_collection_interval in the Agent configuration file to less than 15 seconds when you want values even for short jobs. You see the results in the Infrastructure tab that appears when you open a job's span in the trace view. When you open a long-running job and the host values for the same time window are pinned at the limit, that is grounds to revisit runner size before the job's contents. When you change how runners are named, check with a single job that values appear in the Infrastructure tab.

In a Single Repository, Open the Slowest Jobs From the Top

As one approach, enable just one frequently used repository at first, and once a few days of runs have accumulated, open the top three or so jobs with the longest execution time at the job level (ci_level:job). For each job you open, distinguish whether queue time is long or the execution itself is long. If waiting is long, check the number of runners; if execution is long, check the job logs and host values, and add whatever tier is missing there. Once you have identified the slow jobs, you can export that search condition to a monitor and get notified when the time grows. The type is CI Pipeline monitor (source: CI/CD & Test Monitor). You can follow weekly trends by placing execution time and queue time on a single dashboard, following how to create a dashboard. If, before enabling, you write down the name of the workflow in your repository that took the longest recently, the first row to open on the day the screens fill up is already decided.

References

Share