---
title: "Realtime Database Monitoring with Stackdriver"
description: "Realtime Database Monitoring with Stackdriver"
published: "2017-12-21"
last_updated: "2017-12-21"
authors:
  - "Tyler Rockwood (Software Engineer)"
categories:
  - "Realtime Database"
  - "Stackdriver"
  - "Launch"
canonical_url: "https://firebase.blog/posts/2017/12/realtime-database-monitoring-with"
---

# Realtime Database Monitoring with Stackdriver

*Published December 21, 2017 by Tyler Rockwood (Software Engineer)*

---
We're happy to announce that the [Realtime Database](https://firebase.google.com/docs/database/) has integrated with [Google Stackdriver](https://cloud.google.com/stackdriver/)! This integration allows you to monitor your Realtime Database in powerful new ways. Here are some of the highlights:

- [New metrics exported](https://cloud.google.com/monitoring/api/metrics_gcp#gcp-firebasedatabase) from your Realtime Database
- [Set alerts](https://cloud.google.com/monitoring/alerts/) for when usage reach certain thresholds
- [Create graphs](https://cloud.google.com/monitoring/quickstart-lamp#gs-dashboards) of various metrics for better insight into performance

Several metrics are already available in your Firebase Console under simpler names. For example `io/utilization` is "Load", `storage/total_bytes` is "Storage", `network/sent_bytes_count` is "Downloads", and `network/active_connections` is "Connections". These metrics form a great base, but now we you can go further so can can closely monitor your application as it scales with a whole collection of new, in-depth insights.

To get started, check out [https://console.cloud.google.com/monitoring](https://console.cloud.google.com/monitoring) to [create a Stackdriver account](https://cloud.google.com/monitoring/quickstart-lamp#create_a_stackdriver_account) for your Firebase projects.

To set up a graph of a new Realtime Database metric, go to **Dashboards > Create Dashboard** in Stackdriver, then click on the **Add Chart** button in the toolbar.

![image1](https://firebasestorage.googleapis.com/v0/b/first-class-blog.appspot.com/o/blog-assets%2F2017%2F12%2Frealtime-database-monitoring-with%2Foptimized%2Fimage1.jpg?alt=media)

This example is replicating the "Load" graph in your Firebase Console, except we've improved it by also breaking down the data by "operation type". With this detailed view, you can see how long it takes your database to respond to REST "get" requests, versus how much REST "put" or realtime "set" operations are taking up your database's capacity.

We also have a few other key metrics we think you'll love, such as `network/https_requests_count` which tells you how many requests to the database require a full SSL handshake, `network/sent_payload_and_protocol_bytes_count` which is a measure of the raw bandwidth from the database (excluding encryption and SSL handshakes), and many others. Check out our [list of all metrics](https://firebase.google.com/docs/database/usage/monitor-performance) for a more in-depth explanation and stay tuned for follow up blog posts where we'll dive into more complex examples of alerts and charts in Stackdriver.
