---
title: Google Cloud Firebase Database monitoring integration
source: https://docs.newrelic.com/docs/infrastructure/google-cloud-platform-integrations/gcp-integrations-list/google-cloud-firebase-database-monitoring-integration
---

[New Relic integrations](https://docs.newrelic.com/docs/infrastructure/introduction-infra-monitoring) with the [Google Cloud Platform (GCP)](https://cloud.google.com/) include one that reports [Google Firebase Realtime Database](https://firebase.google.com/products/realtime-database) data to New Relic. This document explains how to activate the GCP Firebase Database integration and describes the data it reports.

## Features

Firebase Realtime Database is Google Cloud's NoSQL cloud database that lets you store and sync data between users in realtime. New Relic Firebase Database integration collects I/O, network, storage, connection, and security-rule metrics for each database namespace.

## Activate integration [#activate]

To enable the integration, follow standard procedures to [connect your GCP service to New Relic](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure):

-   [Connect with Workload Identity Federation (recommended)](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure)
-   [Connect with service account or user account](https://docs.newrelic.com/docs/connect-google-cloud-platform-services-infrastructure)

## Polling frequency [#polling]

New Relic integrations query your GCP services according to a polling interval that varies by integration. The polling frequency for Google Cloud Firebase Database is 5 minutes. The resolution is 1 data point every minute.

## Workload Identity Federation [#wif]

### Find and use data [#find-data-wif]

After you enable the integration, your Firebase Database resources appear as entities in the New Relic entity explorer. To see dashboards and manage services, go to [one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Infrastructure > GCP.

All Firebase Database 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 Firebase Database metrics documentation](https://cloud.google.com/monitoring/api/metrics_gcp_d_h#gcp-firebasedatabase) for the complete list.

#### Entities

**Firebase Database entities**

| Entity    | Entity type                    | Resource type        |
| --------- | ------------------------------ | -------------------- |
| Namespace | `GCPFIREBASEDATABASENAMESPACE` | `firebase_namespace` |

### Metric data [#metrics-wif]

#### Key metrics — Namespace

| Metric name                                                          | Unit    | Description                                                                                                      |
| -------------------------------------------------------------------- | ------- | ---------------------------------------------------------------------------------------------------------------- |
| `gcp.firebasedatabase.io.utilization`                                | Percent | Fraction of I/O capacity in use by the database namespace.                                                       |
| `gcp.firebasedatabase.io.database_load`                              | Percent | Fraction of database load on the namespace, faceted by load type.                                                |
| `gcp.firebasedatabase.io.persisted_bytes_count`                      | Bytes   | Bytes of data persisted to disk by the database namespace.                                                       |
| `gcp.firebasedatabase.io.sent_responses_count`                       | Count   | Number of responses sent or broadcast to clients from the database namespace.                                    |
| `gcp.firebasedatabase.network.active_connections`                    | Count   | Number of outstanding connections to the database namespace.                                                     |
| `gcp.firebasedatabase.network.api_hits_count`                        | Count   | Number of API hits against the database namespace, faceted by type.                                              |
| `gcp.firebasedatabase.network.https_requests_count`                  | Count   | Number of HTTPS requests received by the database namespace.                                                     |
| `gcp.firebasedatabase.network.broadcast_load`                        | Percent | Fraction of time spent preparing and sending broadcasts to clients.                                              |
| `gcp.firebasedatabase.network.sent_bytes_count`                      | Bytes   | Outgoing bandwidth used by the database namespace, including encryption and protocol overhead.                   |
| `gcp.firebasedatabase.network.sent_payload_and_protocol_bytes_count` | Bytes   | Outgoing bandwidth excluding encryption overhead.                                                                |
| `gcp.firebasedatabase.network.sent_payload_bytes_count`              | Bytes   | Outgoing bandwidth excluding encryption and protocol overhead.                                                   |
| `gcp.firebasedatabase.network.monthly_sent`                          | Bytes   | Total outgoing bytes sent, aggregated and reset monthly.                                                         |
| `gcp.firebasedatabase.network.monthly_sent_limit`                    | Bytes   | Monthly network limit for the database namespace.                                                                |
| `gcp.firebasedatabase.rules.evaluation_count`                        | Count   | Number of Firebase Realtime Database Security Rule evaluations performed in response to write and read requests. |
| `gcp.firebasedatabase.storage.total_bytes`                           | Bytes   | Storage in use by the database namespace.                                                                        |
| `gcp.firebasedatabase.storage.limit`                                 | Bytes   | Storage limit for the database namespace.                                                                        |

For the complete list of Firebase Database metrics, see [Google's Firebase Database metrics documentation](https://cloud.google.com/monitoring/api/metrics_gcp_d_h#gcp-firebasedatabase).

## Service account or user account [#service-account]

### Find and use data [#find-data]

After activating the integration and waiting a few minutes (based on the [polling frequency](#polling)), data will appear in the New Relic UI. To [find and use your data](https://docs.newrelic.com/docs/infrastructure/integrations/find-use-infrastructure-integration-data), including links to your dashboards and alert settings, go to [one.newrelic.com > All capabilities](https://one.newrelic.com/all-capabilities) > Infrastructure > GCP > (select an integration).

Data is attached to the following [event type](https://docs.newrelic.com/docs/data-apis/understand-data/new-relic-data-types/#event-data):

| Entity    | Event Type                           | Provider                       |
| --------- | ------------------------------------ | ------------------------------ |
| Namespace | `GcpFirebasedatabaseNamespaceSample` | `GcpFirebasedatabaseNamespace` |

For more on how to use your data, see [Understand and use integration data](https://docs.newrelic.com/docs/infrastructure/integrations/find-use-infrastructure-integration-data).

### Firebase Database Namespace data

| Metric                                | Unit  | Description                                                                                                          |
| ------------------------------------- | ----- | -------------------------------------------------------------------------------------------------------------------- |
| `io.DatabaseLoad`                     | Count | Fraction of database load, grouped by type.                                                                          |
| `io.PersistedBytes`                   | Bytes | Bytes of data persisted to disk.                                                                                     |
| `io.SentResponses`                    | Count | Number of responses sent or broadcasted to clients.                                                                  |
| `io.Utilization`                      | Count | Fraction of I/O used.                                                                                                |
| `network.ActiveConnections`           | Count | The number of outstanding connections                                                                                |
| `network.ApiHits`                     | Count | The number of hits aginst your database grouped by type.                                                             |
| `network.BroadcastLoad`               | Count | Utilization of the time it takes to prep and send broadcasts to clients.                                             |
| `network.HttpsRequests`               | Count | Number of HTTPS requests received.                                                                                   |
| `network.MonthlySent`                 | Bytes | The total outgoing bytes sent aggregated and reset monthly.                                                          |
| `network.MonthlySentLimit`            | Bytes | The monthly network limit for the Firebase database.                                                                 |
| `network.SentBytes`                   | Bytes | The outgoing bandwidth used by the database, including encryption and protocol overhead.                             |
| `network.SentPayloadAndProtocolBytes` | Bytes | The outgoing bandwidth usage without encryption overhead.                                                            |
| `network.SentPayloadBytes`            | Bytes | The outgoing bandwidth usage without encryption nor protocol.                                                        |
| `rules.Evaluation`                    | Count | The number of Firebase Realtime Database Security Rule evaluations performed in response to write and read requests. |
| `storage.Limit`                       | Bytes | The storage limit for the Firebase database.                                                                         |
| `storage.TotalBytes`                  | Bytes | The size of the Firebase database storage.                                                                           |
