AWS CodeBuild

To find out if this integration is available in your organization, see your Datadog Integrations page or ask your organization administrator.

To initiate an exception request to enable this integration for your organization, email [email protected].

Présentation

AWS CodeBuild est un service d’intégration entièrement géré qui compile votre code source, exécute des tests et produit des packages logiciels prêts à être déployés.

Installez l’intégration Datadog/AWS CodeBuild pour :

  • Suivre vos builds par projet
  • Recueillir les métriques associées à vos builds
  • Corréler les builds avec le reste de vos métriques Datadog

Configuration

Installation

Si vous ne l’avez pas déjà fait, configurez d’abord l’intégration Amazon Web Services.

Collecte de métriques

  1. Dans le carré d’intégration AWS, assurez-vous que l’option CloudBuild est cochée dans la section concernant la collecte des métriques.

  2. Installez l’intégration Datadog/AWS Codebuild.

Collecte de logs

Activer le logging

Configurez AWS CodeBuild de façon à ce que ses logs soient envoyés vers un compartiment S3 ou vers CloudWatch.

Remarque : si vous envoyez vos logs vers un compartiment S3, assurez-vous que amazon_codebuild est défini en tant que Target prefix.

Envoyer des logs à Datadog

  1. Si vous ne l’avez pas déjà fait, configurez la fonction Lambda de collecte de logs AWS avec Datadog.

  2. Une fois la fonction Lambda installée, ajoutez manuellement un déclencheur sur le compartiment S3 ou sur le groupe de logs CloudWatch qui contient vos logs Amazon CodeBuild dans la console AWS :

Données collectées

Métriques

aws.codebuild.build_duration
(gauge)
The elapsed time of the build’s BUILD phase.
Shown as second
aws.codebuild.builds
(count)
The number of builds triggered.
Shown as build
aws.codebuild.cpuutilized
(gauge)
The number of CPU units used by the build container.
Shown as core
aws.codebuild.cpuutilized_percent
(gauge)
The percentage of CPU units used by the build container.
Shown as percent
aws.codebuild.download_source_duration
(gauge)
The elapsed time of the build’s DOWNLOAD_SOURCE phase.
Shown as second
aws.codebuild.duration
(gauge)
The elapsed time of all builds.
Shown as second
aws.codebuild.duration.maximum
(gauge)
The maximum elapsed time across all builds.
Shown as second
aws.codebuild.duration.minimum
(gauge)
The minimum elapsed time across all builds.
Shown as second
aws.codebuild.failed_builds
(count)
The number of builds that failed due to client error or timeout.
Shown as build
aws.codebuild.finalizing_duration
(gauge)
The elapsed time of the build’s FINALIZING phase.
Shown as second
aws.codebuild.initialized_duration
(gauge)
The elapsed time of the build’s INITIALIZED phase.
Shown as second
aws.codebuild.install_duration
(gauge)
The elapsed time of the build’s INSTALL phase.
Shown as second
aws.codebuild.memory_utilized
(gauge)
The number of megabytes of memory used by the build container.
Shown as megabyte
aws.codebuild.memory_utilized_percent
(gauge)
The percentage of memory used by the build container.
Shown as percent
aws.codebuild.post_build_duration
(gauge)
The elapsed time of the build’s POST_BUILD phase.
Shown as second
aws.codebuild.pre_build_duration
(gauge)
The elapsed time of the build’s PRE_BUILD phase.
Shown as second
aws.codebuild.provisioning_duration
(gauge)
The elapsed time of the build’s PROVISIONING phase.
Shown as second
aws.codebuild.queued_duration
(gauge)
The elapsed time of the build’s QUEUED phase.
Shown as second
aws.codebuild.storage_read_bytes
(gauge)
The storage read throughput of the build container.
Shown as byte
aws.codebuild.storage_write_bytes
(gauge)
The storage write throughput of the build container.
Shown as byte
aws.codebuild.submitted_duration
(gauge)
The elapsed time of the build’s SUBMITTED phase.
Shown as second
aws.codebuild.succeeded_builds
(count)
The number of successful builds.
Shown as build
aws.codebuild.upload_artifacts_duration
(gauge)
The elapsed time of the build’s UPLOAD_ARTIFACTS phase.
Shown as second

Événements

L’intégration AWS CodeBuild n’inclut aucun événement.

Checks de service

L’intégration AWS_CodeBuild n’inclut aucun check de service.

Dépannage

Besoin d’aide ? Contactez l’assistance Datadog.