December 21, 2017
We’re happy to announce that the
Realtime Database
has integrated with
Google Stackdriver
! This integration allows you to monitor your Realtime Database in powerful new ways. Here are some of the highlights:
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
to
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.
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
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.