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].

概要

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

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

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

セットアップ

インストール

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

メトリクスの収集

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

  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)
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

イベント

AWS CodeBuild インテグレーションには、イベントは含まれません。

サービスチェック

AWS CodeBuild インテグレーションには、サービスのチェック機能は含まれません。

トラブルシューティング

ご不明な点は、Datadog のサポートチームまでお問い合わせください。