概要

Google Cloud Firestore は、Firebase と Google Cloud Platform によるモバイル、Web、およびサーバー開発に対応した柔軟で拡張性の高いデータベースです。

Datadog Google Cloud Platform インテグレーションを使用して、Google Cloud Firestore からメトリクスを収集できます。

セットアップ

インストール

Google Cloud Platform インテグレーションをまだセットアップしていない場合は、最初にセットアップします。それ以上のインストール手順はありません。

収集データ

Google Cloud Firestore のログは Google Cloud Logging で収集され、Cloud Pub/Sub トピックを通じて Dataflow ジョブに送信されます。まだの場合は、Datadog Dataflow テンプレートでロギングをセットアップしてください

これが完了したら、Google Cloud Firestore のログを Google Cloud Logging から Pub/Sub トピックへエクスポートします。

  1. Google Cloud Logging のページに移動し、Google Cloud Firestore のログを絞り込みます。
  2. Create Export をクリックし、シンクに名前を付けます。
  3. 宛先として “Cloud Pub/Sub” を選択し、その目的で作成された Pub/Sub トピックを選択します。: Pub/Sub トピックは別のプロジェクトに配置できます。
  4. 作成をクリックし、確認メッセージが表示されるまで待ちます。

収集データ

メトリクス

gcp.firestore.api.request_count
(count)
Count of Firestore API calls.
gcp.firestore.api.request_latencies.avg
(count)
The average non-streaming Firestore v1, Datastore v1, and Datastore v3 request latencies from the frontend.
Shown as second
gcp.firestore.api.request_latencies.samplecount
(count)
The sample count for non-streaming Firestore v1, Datastore v1, and Datastore v3 request latencies from the frontend.
Shown as second
gcp.firestore.api.request_latencies.sumsqdev
(count)
The sum of squared deviation for non-streaming Firestore v1, Datastore v1, and Datastore v3 request latencies from the frontend.
Shown as second
gcp.firestore.composite_indexes_per_database
(gauge)
Current number of composite indexes per database.
gcp.firestore.document.delete_count
(count)
The number of successful document deletes.
gcp.firestore.document.delete_ops_count
(count)
The number of successful document deletes.
gcp.firestore.document.read_count
(count)
The number of successful document reads from queries or lookups.
gcp.firestore.document.read_ops_count
(count)
The number of successful document reads from queries or lookups.
gcp.firestore.document.ttl_deletion_count
(count)
Total count of documents deleted by TTL services.
gcp.firestore.document.ttl_expiration_to_deletion_delays.avg
(count)
The average time elapsed between when a document with a TTL expired, and when it was actually deleted.
Shown as second
gcp.firestore.document.ttl_expiration_to_deletion_delays.samplecount
(count)
The sample count for time elapsed between when a document with a TTL expired, and when it was actually deleted.
Shown as second
gcp.firestore.document.ttl_expiration_to_deletion_delays.sumsqdev
(count)
The sum of squared deviation for time elapsed between when a document with a TTL expired, and when it was actually deleted.
Shown as second
gcp.firestore.document.write_count
(count)
The number of successful document writes.
gcp.firestore.document.write_ops_count
(count)
The number of successful document writes.
gcp.firestore.field_configurations_per_database
(gauge)
Current number of field configurations per database.
gcp.firestore.network.active_connections
(gauge)
The number of active connections. Each mobile client will have one connection. Each listener in admin SDK will be one connection.
gcp.firestore.network.snapshot_listeners
(gauge)
The number of snapshot listeners currently registered across all connected clients.
gcp.firestore.query_stat.per_query.result_counts.avg
(count)
The average distribution of number of results yielded per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.query_stat.per_query.result_counts.samplecount
(count)
The sample count for distribution of number of results yielded per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.query_stat.per_query.result_counts.sumsqdev
(count)
The sum of squared deviation for distribution of number of results yielded per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.query_stat.per_query.scanned_documents_counts.avg
(count)
The average distribution of number of documents scanned per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.query_stat.per_query.scanned_documents_counts.samplecount
(count)
The sample count for distribution of number of documents scanned per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.query_stat.per_query.scanned_documents_counts.sumsqdev
(count)
The sum of squared deviation for distribution of number of documents scanned per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.query_stat.per_query.scanned_index_entries_counts.avg
(count)
The average distribution of number of scanned index entries per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.query_stat.per_query.scanned_index_entries_counts.samplecount
(count)
The sample count for distribution of number of scanned index entries per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.query_stat.per_query.scanned_index_entries_counts.sumsqdev
(count)
The sum of squared deviation for distribution of number of scanned index entries per query. Real-time queries are excluded. Note. This metric is for performance observability. It is not relevant to billing calculations. To understand how read operations contribute to your bill, use firestore.googleapis.com/document/read_ops_count.
gcp.firestore.quota.composite_indexes_per_database.exceeded
(count)
Number of attempts to exceed the limit on quota metric firestore.googleapis.com/composite_indexes_per_database.
gcp.firestore.quota.composite_indexes_per_database.limit
(gauge)
Current limit on quota metric firestore.googleapis.com/composite_indexes_per_database.
gcp.firestore.quota.composite_indexes_per_database.usage
(gauge)
Current usage on quota metric firestore.googleapis.com/composite_indexes_per_database.
gcp.firestore.rules.evaluation_count
(count)
The number of Cloud Firestore Security Rule evaluations performed in response to write (create, update, delete) or read (get, list) requests.

イベント

Google Cloud Firestore インテグレーションには、イベントは含まれません。

サービスチェック

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

トラブルシューティング

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