CI Visibility is not available for the selected site ().
The custom tags and measures commands provide a way to add user-defined text and numerical tags to your CI Visibility
pipeline traces.
These tags can be used to create facets (string value tags) or measures (numerical value tags). Facets and measures
can then be used to search, graph, or monitor the pipelines.
Compatibility
Custom tags and measures work with the following CI providers:
Buildkite
CircleCI
GitLab (SaaS or self-hosted >= 14.1)
GitHub.com (SaaS) Note: For adding tags and measures to GitHub jobs, see the section below.
Jenkins Note: For Jenkins, follow these instructions to set up custom tags in your pipelines.
Azure DevOps Pipelines
Install the Datadog CI CLI
Install the datadog-ci (>=v1.15.0) CLI globally using npm:
npm install -g @datadog/datadog-ci
Alternatively, you can try and use the beta standalone binary if you don’t want to use npm.
To create a measure, click the gear icon next to the measures name in the pipeline executions page
and then click the create measure option.
Add tags and measures to GitHub jobs
To add tags and measures to GitHub jobs, datadog-ci CLI version 2.29.0 or higher is required.
If the job name does not match the entry defined in the workflow configuration file (the GitHub job ID),
the DD_GITHUB_JOB_NAME environment variable needs to be exposed, pointing to the job name. For example:
jobs:build:name:My build job nameenv:DD_GITHUB_JOB_NAME:My build job namesteps:- run:datadog-ci tag ...
If the matrix strategy is used, several job names are generated by GitHub by adding the matrix values at the end of the job name,
within parenthesis. The DD_GITHUB_JOB_NAME environment variable should then be conditional on the matrix values: