AWS CodeBuild

Información general

AWS CodeBuild es un servicio de compilación que compila el código fuente, ejecuta tests y genera paquetes de software listos para su despliegue.

Instala la integración de Datadog y AWS CodeBuild para:

  • Rastrear las compilaciones por proyecto
  • Recopilar métricas sobre tus compilaciones
  • Correlacionar las compilaciones con el resto de tus métricas de Datadog

Configuración

Instalación

Si aún no lo has hecho, configura primero la integración de Amazon Web Services.

Recopilación de métricas

  1. En la página de la integración de AWS, asegúrate de que CodeBuild está habilitado en la pestaña Metric Collection.

  2. Instala la integración de Datadog y AWS CodeBuild.

APM

Activar logging

Configura AWS CodeBuild para enviar logs a un bucket de S3 o a CloudWatch.

Nota: Si vas a loguear en un bucket de S3, asegúrate de que amazon_codebuild está configurado como Target prefix (Prefijo de destino).

Enviar logs a Datadog

  1. Si aún no lo has hecho, configura la función de Lambda de Datadog Forwarder.

  2. Una vez instalada la función de Lambda, añade manualmente un activador en el bucket de S3 o grupo de logs de CloudWatch que contenga tus logs de AWS CodeBuild en la consola de AWS:

Datos recopilados

Métricas

aws.codebuild.build_duration
(gauge)
Measures the duration of the build's BUILD phase.
Shown as second
aws.codebuild.builds
(count)
Measures the number of builds triggered.
Shown as build
aws.codebuild.download_source_duration
(gauge)
Measures the duration of the build's DOWNLOAD_SOURCE phase.
Shown as second
aws.codebuild.duration
(gauge)
Measures the total duration of all builds over time.
Shown as second
aws.codebuild.duration.maximum
(gauge)
Measures the maximum duration of all the builds over time.
Shown as second
aws.codebuild.duration.minimum
(gauge)
Measures the minimum duration of all the builds over time.
Shown as second
aws.codebuild.failed_builds
(count)
Measures the number of failed builds because of client error or timeouts.
Shown as build
aws.codebuild.finalizing_duration
(gauge)
Measures the duration of the build's FINALIZING phase.
Shown as second
aws.codebuild.install_duration
(gauge)
Measures the duration of the build's INSTALL phase.
Shown as second
aws.codebuild.post_build_duration
(gauge)
Measures the duration of the build's POST_BUILD phase
Shown as second
aws.codebuild.pre_build_duration
(gauge)
Measures the duration of the build's PRE_BUILD phase.
Shown as second
aws.codebuild.provisioning_duration
(gauge)
Measures the duration of the build's PROVISIONING phase.
Shown as second
aws.codebuild.queued_duration
(gauge)
Measures the duration of the build's QUEUED phase.
Shown as second
aws.codebuild.submitted_duration
(gauge)
Measures the duration of the build's SUBMITTED phase.
Shown as second
aws.codebuild.succeeded_builds
(count)
Measures the number of successful builds.
Shown as build
aws.codebuild.upload_artifacts_duration
(gauge)
Measures the duration of the build's UPLOAD_ARTIFACTS phase.
Shown as second

Eventos

La integración de AWS CodeBuild no incluye ningún evento.

Checks de servicio

La integración de AWS CodeBuild no incluye ningún check de servicio.

Resolución de problemas

¿Necesitas ayuda? Ponte en contacto con el servicio de asistencia de Datadog.