Google Cloud Firestore

Présentation

Google Cloud Firestore est une base de données flexible et évolutive pour le développement mobile, web et serveur depuis Firebase et Google Cloud Platform.

Utilisez l’intégration Datadog/Google Cloud Platform pour recueillir des métriques de Google Cloud Firestore.

Implémentation

Installation

Si vous ne l’avez pas déjà fait, configurez d’abord l’intégration Google Cloud Platform. Aucune autre procédure d’installation n’est requise.

Collecte de logs

Les logs Google Cloud Firestore sont recueillis avec Google Cloud Logging et envoyés à un Cloud Pub/Sub via un forwarder Push HTTP. Si vous ne l’avez pas déjà fait, configurez un Cloud Pub/Sub à l’aide d’un forwarder Push HTTP.

Une fois cette opération effectuée, exportez vos logs Google Cloud Firestore depuis Google Cloud Logging vers le Pub/Sub :

  1. Accédez à la page Google Cloud Logging et filtrez les logs Google Cloud Firestore.
  2. Cliquez sur Create Export et nommez le récepteur.
  3. Choisissez Cloud Pub/Sub comme destination et sélectionnez le Pub/Sub créé à cette fin. Remarque : le Pub/Sub peut se situer dans un autre projet.
  4. Cliquez sur Create et attendez que le message de confirmation s’affiche.

Données collectées

Métriques

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.

Événements

L’intégration Google Cloud Firestore n’inclut aucun événement.

Checks de service

L’intégration Google Cloud Firestore n’inclut aucun check de service.

Dépannage

Besoin d’aide ? Contactez l’assistance Datadog.