New Relic integrations with the Google Cloud Platform (GCP) include one that reports Google Cloud Firestore data to New Relic. This document explains how to activate the GCP Firestore integration and describes the data it reports.
Features
Firestore is Google Cloud's serverless, fully managed NoSQL document database. New Relic Firestore integration collects API request, document read/write, and quota metrics at instance scope, plus request-level metrics attached to the Datastore-compatible request resource.
Activate integration
To enable the integration, follow standard procedures to connect your GCP service to New Relic:
Polling frequency
New Relic integrations query your GCP services according to a polling interval that varies by integration. The polling frequency for Google Cloud Firestore is 5 minutes. The resolution is 1 data point every minute.
Workload Identity Federation
Find and use data
After you enable the integration, your Firestore resources appear as entities in the New Relic entity explorer. To see dashboards and manage services, go to one.newrelic.com > All capabilities > Infrastructure > GCP.
All Firestore metrics available in GCP Cloud Monitoring are collected as dimensional metrics in the Metric event type. Additional metrics beyond this table are collected automatically. See Google's Firestore metrics documentation for the complete list.
Entities
Metric data
Key metrics — Request
Metric name | Unit | Description |
|---|---|---|
| Count | Number of Firestore API requests, faceted by |
| Seconds | Server request latency distribution, faceted by |
Key metrics — Instance
Metric name | Unit | Description |
|---|---|---|
| Count | Number of documents read via the Firestore API. |
| Count | Number of documents written via the Firestore API. |
| Count | Number of documents deleted via the Firestore API. |
| Count | Number of active real-time snapshot listeners on the Firestore instance. |
| Count | Number of active client connections to the Firestore instance. |
| Count | Number of Firestore Security Rule evaluations performed against the instance, faceted by result. |
| Count | Number of documents deleted by TTL policies on the Firestore instance. |
| Seconds | Delay between TTL expiration and the corresponding document deletion. |
For the complete list of Firestore metrics, see Google's Firestore metrics documentation.
Service account or user account
Find and use data
After activating the integration and waiting a few minutes (based on the polling frequency), data will appear in the New Relic UI. To find and use your data, including links to your and alert settings, go to one.newrelic.com > All capabilities > Infrastructure > GCP > (select an integration).
Data is attached to the following event type:
Entity | Event Type | Provider |
|---|---|---|
Request |
|
|
Instance |
|
|
For more on how to use your data, see Understand and use integration data.
Firestore Request data
Metric | Unit | Description |
|---|---|---|
| Count | Count of Firestore API calls. |
Firestore Instance data
Metric | Unit | Description |
|---|---|---|
| Count | The number of successful document deletes. |
| Count | The number of successful document reads from queries or lookups. |
| Count | The number of successful document writes. |
| Count | The number of active connections. Each mobile client will have one connection. Each listener in admin SDK will be one connection. |
| Count | The number of snapshot listeners currently registered across all connected clients. |
| Count | The number of Cloud Firestore Security Rule evaluations performed in response to write (create, update, delete) or read (get, list) requests. |