概要

AWS App Runner を使用すると、ソースコードまたはコンテナイメージから AWS にアプリケーションをデプロイできます。

このインテグレーションを有効にすると、Datadog にすべての App Runner メトリクスを表示できます。

計画と使用

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

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

メトリクスの収集

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

収集データ

AWS App Runner によって管理されるアプリケーションから Datadog と統合できるログには 2 種類あります。これらのログは、2 つの異なるロググループで CloudWatch に送信されます。1 つ目は、アプリケーションのビルドやデプロイなど、App Runner サービスのすべてのライフサイクルアクティビティログをキャプチャするサービスロググループです。2 つ目は、実行中のアプリケーションのコードからのログ出力を含むアプリケーションロググループです。

ログを Datadog に送信する方法

  1. Datadog Forwarder Lambda 関数をまだセットアップしていない場合は、セットアップします。
  2. Lambda 関数をインストールしたら、AWS コンソールで App Runner サービスまたはアプリケーション CloudWatch ロググループにトリガーを手動で追加します。
    CloudWatch Logs グループ
    対応する CloudWatch ロググループを選択し、フィルター名を追加して (空にすることも可能)、トリガーを追加します。
    Cloudwatch トリガー
  3. 手順 2 を繰り返して、追加のロググループを追加します。
  4. 完了したら、Datadog Log セクションに移動し、ログを確認します。

イベント収集

AWS App Runner は、サービスとオペレーションのステータス変更イベントの両方を EventBridge に送信します。これを Datadog に転送して Event Stream で表示できます。これらのイベントを Datadog に送信するには、次の手順を実行します。

  1. Datadog イベントの EventBridge API 宛先を作成します。
  2. AWS App Runner のイベントに対応する EventBridge ルールを作成します (EventBridge で App Runner のイベントを処理するを参照)。ターゲットとして API Destination を選択します。
  3. Datadog イベントストリームで新しいステータス変更イベントの表示を開始します。

リアルユーザーモニタリング

データセキュリティ

aws.apprunner.2xx_status_responses
(count)
The number of 2XX HTTP responses.
Shown as response
aws.apprunner.4xx_status_responses
(count)
The number of 4XX HTTP responses.
Shown as response
aws.apprunner.5xx_status_responses
(count)
The number of 5XX HTTP responses.
Shown as response
aws.apprunner.active_instances
(gauge)
The number of active instances.
Shown as instance
aws.apprunner.cpuutilization
(gauge)
Average CPU usage over one-minute periods.
Shown as percent
aws.apprunner.memory_utilization
(gauge)
Average memory usage over one-minute periods.
Shown as percent
aws.apprunner.request_latency
(gauge)
The time it took your web service to process HTTP requests.
Shown as millisecond
aws.apprunner.request_latency.p50
(gauge)
50th percentile of the time it took your web service to process HTTP requests.
Shown as millisecond
aws.apprunner.request_latency.p95
(gauge)
95th percentile of the time it took your web service to process HTTP requests.
Shown as millisecond
aws.apprunner.request_latency.p99
(gauge)
99th percentile of the time it took your web service to process HTTP requests.
Shown as millisecond
aws.apprunner.requests
(count)
The number of HTTP requests that the service received.
Shown as request

ヘルプ

AWS App Runner インテグレーションは、EventBridge からのサービスとオペレーションのステータス変更イベントの両方をサポートします。

ヘルプ

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

ヘルプ

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