- はじめに
- エージェント
- インテグレーション
- Watchdog
- イベント
- ダッシュボード
- モバイルアプリケーション
- インフラストラクチャー
- サーバーレス
- メトリクス
- ノートブック
- アラート設定
- APM & Continuous Profiler
- CI Visibility
- RUM & セッションリプレイ
- データベース モニタリング
- ログ管理
- セキュリティプラットフォーム
- Synthetic モニタリング
- ネットワークモニタリング
- 開発者
- API
- アカウントの管理
- データセキュリティ
- ヘルプ
Google Cloud Functions は、単一目的の小規模な関数を作成できる、軽量、イベントベース、かつ非同期のコンピューティングソリューションです。
Google Functions からメトリクスを取得して、以下のことができます。
Google Cloud Platform インテグレーションをまだセットアップしていない場合は、最初にセットアップします。それ以上のインストール手順はありません。
Google Cloud Function のログは Stackdriver により収集され、HTTP プッシュフォワーダーを使用して Cloud Pub/Sub へ送信されます。HTTP プッシュフォワーダーを使用した Cloud Pub/Sub をまだセットアップしていない場合は、これをセットアップしてください。
セットアップが完了したら、Google Cloud Function のログを Stackdriver から Pub/Sub へエクスポートします。
Stackdriver ページに移動し、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 のサポートチームまでお問合せください。