概要

AWS CodeBuild は、ソースコードのコンパイル、テストの実行、デプロイ可能なソフトウェアパッケージの生成を行うビルドサービスです。

Datadog AWS CodeBuild インテグレーションをインストールすると、以下のことができます。

  • プロジェクトごとにビルドを追跡できます。
  • ビルドに関するメトリクスを収集できます。
  • 他の Datadog メトリクスとビルドを関連付けることができます。

計画と使用

インフラストラクチャーリスト

Amazon Web Services インテグレーションをまだセットアップしていない場合は、最初にセットアップします。

メトリクスの収集

  1. AWS インテグレーションページで、Metric Collection タブの下にある CloudBuild が有効になっていることを確認します。

  2. Datadog - AWS Codebuild インテグレーションをインストールします。

収集データ

ログの有効化

S3 バケットまたは CloudWatch のいずれかにログを送信するよう AWS CodeBuild を構成します。

: S3 バケットにログを送信する場合は、Target prefixamazon_codebuild に設定されていることを確認してください。

ログを Datadog に送信する方法

  1. Datadog Forwarder Lambda 関数をまだセットアップしていない場合は、セットアップします。

  2. Lambda 関数がインストールされたら、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 のサポートチームまでお問合せください。