概要
Google Cloud Functions は、単一目的の小規模な関数を作成できる、軽量、イベントベース、かつ非同期のコンピューティングソリューションです。
Google Functions からメトリクスを取得して、以下のことができます。
- 関数のパフォーマンスを視覚化。
- 関数のパフォーマンスをアプリケーションと関連付け。
計画と使用
メトリクスの収集
インフラストラクチャーリスト
Google Cloud Platform インテグレーションをまだセットアップしていない場合は、最初にセットアップします。それ以上のインストール手順はありません。
収集データ
Google Cloud Function のログは Google Cloud Logging で収集され、Cloud Pub/Sub トピックを通じて Dataflow ジョブに送信されます。まだの場合は、Datadog Dataflow テンプレートでロギングをセットアップしてください。
これが完了したら、Google Cloud Firestore のログを Google Cloud Function から Pub/Sub へエクスポートします。
- Google Cloud Logging のページに移動し、Google Cloud Function のログを絞り込みます。
- シンクを作成し、シンクに適宜名前を付けます。
- エクスポート先として「Cloud Pub/Sub」を選択し、エクスポート用に作成された Pub/Sub を選択します。注: この Pub/Sub は別のプロジェクト内に配置することもできます。
- 作成をクリックし、確認メッセージが表示されるまで待ちます。
リアルユーザーモニタリング
データセキュリティ
gcp.cloudfunctions.function.active_instances (gauge) | The number of active function instances Shown as instance |
gcp.cloudfunctions.function.execution_count (count) | The number of function executions. Shown as occurrence |
gcp.cloudfunctions.function.execution_times.avg (gauge) | Average of functions execution times. Shown as nanosecond |
gcp.cloudfunctions.function.execution_times.p95 (gauge) | 95th percentile of functions execution times. Shown as nanosecond |
gcp.cloudfunctions.function.execution_times.p99 (gauge) | 99th percentile of functions execution times. Shown as nanosecond |
gcp.cloudfunctions.function.execution_times.samplecount (count) | Sample count for functions execution times. Shown as occurrence |
gcp.cloudfunctions.function.execution_times.sumsqdev (gauge) | Sum of squared deviation for functions execution times. Shown as nanosecond |
gcp.cloudfunctions.function.instance_count (gauge) | The number of function instances broken down by state Shown as instance |
gcp.cloudfunctions.function.network_egress (gauge) | The outgoing network traffic of a function Shown as byte |
gcp.cloudfunctions.function.user_memory_bytes.avg (gauge) | The average function memory usage during execution Shown as byte |
gcp.cloudfunctions.function.user_memory_bytes.p95 (gauge) | The 95th percentile of function memory usage during execution Shown as byte |
gcp.cloudfunctions.function.user_memory_bytes.p99 (gauge) | The 99th percentile of function memory usage during execution Shown as byte |
gcp.cloudfunctions.function.user_memory_bytes.samplecount (count) | The sample count for a function's memory usage. Shown as occurrence |
gcp.cloudfunctions.function.user_memory_bytes.sumsqdev (gauge) | The sum of squared deviation for function's memory usage. Shown as byte |
ヘルプ
Google Cloud Functions インテグレーションには、イベントは含まれません。
ヘルプ
Google Cloud Functions インテグレーションには、サービスのチェック機能は含まれません。
ヘルプ
ご不明な点は、Datadog のサポートチームまでお問い合わせください。