Monitor Usage and Billing

Cloud Firestore includes a free tier to help you get started at no cost. After you exceed the usage and storage quotas for the free tier, you're charged for the database operations you perform, the data you store, and the network bandwidth you use. Use this guide to understand how your Cloud Firestore usage is billed, how to monitor that usage, and how to set spending limits.

Understand Cloud Firestore billing

Charges for Cloud Firestore usage fall under the following categories:

  • Operations: All reads, writes, and deletes have a cost associated with them. Reads include queries, simple fetches, and updates through realtime listeners. You're also charged for any reads required to evaluate Cloud Firestore Security Rules you've added to your database. Learn more about charges for operations in Cloud Firestore.
  • Storage: You're charged for the data you store in Cloud Firestore, including metadata and indexes. Examples of metadata include document names, collection IDs, and field names. Index entries typically include the collection ID, the field values indexed, and the document name. Learn more about storage costs in Cloud Firestore.
  • Network bandwidth: Incoming and outgoing network bandwidth (or network ingress and egress, respectively) costs include connection overhead for your Cloud Firestore requests. During beta, network bandwidth won't be billed. However, this situation is temporary. Review the network bandwidth costs and monitor your usage to properly plan for bandwidth costs.

For a full, detailed explanation of Cloud Firestore costs, including things to watch out for, see Cloud Firestore Pricing.

Monitor your usage

When you create a Firebase project, you're also creating a project in the Google Cloud Platform. Use the App Engine Quotas page in the Cloud Platform Console to monitor your project's Cloud Firestore usage and storage costs.

See more details about the free tier quotas and Cloud Firestore limits in Cloud Firestore Quotas and Limits.

Set spending limits

To help avoid unexpected charges on your bill, set spending limits and alerts.

Set a daily spending limit

To cap your Cloud Firestore usage, set a daily spending limit through Google App Engine.

  1. If you haven't already, enable billing for your project in the Cloud Platform Console.
  2. Go to the App Engine Application Settings page in the Cloud Platform Console.
  3. Click Edit and set a Daily spending limit.
  4. Click Save. The new limit takes effect immediately and resets daily.

Set a monthly budget

To track your Cloud Firestore costs, create a monthly budget in the Cloud Platform Console. Budgets won't limit your usage, but you can set alerts to notify you when you're approaching or exceeding your planned costs for the month.

To set a budget, go to the Billing section in the Cloud Platform Console and create a budget for your billing account. You can use the default alert settings or modify the alerts to send notifications at different percentages of your monthly budget.

Learn more about setting a budget in the Cloud Platform Console.

Send feedback about...

Need help? Visit our support page.