Google Cloud Firestore

개요

Google Cloud Firestore는 파이어베이스와 Google 클라우드 플랫폼에서 제공하는 모바일, 웹, 서버 개발을 위한 유연하고 확장 가능한 데이터베이스입니다.

Datadog Google 클라우드 플랫폼 통합을 사용하여 Google Cloud Firestore에서 메트릭 수집합니다.

설정

설치

아직 설치하지 않았다면 먼저 Google 클라우드 플랫폼 통합을 설정합니다. 그 외 다른 설치가 필요하지 않습니다.

로그 수집

Google Cloud Firestore 로그는 Google 클라우드 로깅으로 수집되어 클라우드 퍼브/서브 주제를 통해 데이터 플로우 작업으로 전송됩니다. 아직 설정하지 않았다면 Datadog 데이터 플로우 템플릿으로 로깅을 설정하세요.

이 작업이 완료되면 Google Cloud Firestore 로그를 Google 클라우드 로깅에서 퍼브/서브 항목으로 내보냅니다.

  1. Google 클라우드 로깅 페이지로 이동하여 Google Cloud Firestore 로그를 필터링합니다.
  2. Create Export를 클릭하고 싱크 이름을 지정하세요.
  3. “Cloud Pub/Sub"를 대상으로 선택하고 해당 목적으로 생성된 Pub/Sub 주제를 선택합니다. 참고: Pub/Sub 주제는 다른 프로젝트에 있을 수 있습니다.
  4. Create를 클릭하고 확인 메시지가 나타날 때까지 기다립니다.

수집한 데이터

메트릭

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 지원팀에 문의하세요.