AWS CodeBuild

개요

AWS CodeBuild는 소스 코드를 컴파일하고, 테스트를 실행하고, 배포 준비된 소프트웨어 패키지를 생성하는 빌드 서비스입니다.

Datadog AWS CodeBuild 통합 설치 대상:

  • 프로젝트별 빌드 추적
  • 빌드에서 메트릭 수집
  • 남은 Datadog 메트릭을 통해 빌드 연계

설정

설치

이미 하지 않은 경우 먼저 Amazon Web Services 통합을 설정하세요.

메트릭 수집

  1. AWS 통합 페이지에서 CloudBuildMetric Collection 탭 아래 활성화되었는지 확인하세요.

  2. Datadog - AWS Codebuild 통합을 설치하세요.

로그 수집

로깅 활성화

AWS CodeBuild를 설정해 S3 버킷 또는 클라우드와치(CloudWatch) 중 하나에 로그를 전송하세요.

참고: S3 버킷에 로그인하면 amazon_codebuild를 _대상 접두어_로 설정합니다.

Datadog에 로그 전송

  1. 이미 하지 않은 경우 Datadog 포워더 람다 함수를 설정하세요.

  2. 람다 함수가 설치되면 AWS 콘솔에 AWS CodeBuild 로그를 포함하는 S3 버킷 또는 클라우드와치(CloudWatch) 로그 그룹에 수동으로 트리거를 추가합니다.

수집한 데이터

메트릭

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

이벤트

AWS CodeBuild 통합은 이벤트를 포함하지 않습니다.

서비스 점검

AWS CodeBuild 통합은 서비스 점검을 포함하지 않습니다.

트러블슈팅

도움이 필요하신가요? Datadog 지원팀에 문의하세요.

PREVIEWING: alai97/reorganize-some-sections-in-dora-metrics