Set up spend caps for Firebase services  |  Firebase Documentation

Set up spend caps for Firebase services

This page describes how to set up and manage spend cap budgets when your Firebase project is on the Blaze pricing plan.

Spend cap budgets are available for the following select Firebase services:

Understand budgets

You can control your costs and avoid surprises on your bill by creating budgets for Google Cloud Billing. Budgets are general monetary amounts that you plan on spending each month, and they can either be alerts-only budgets or spend cap budgets.

Alerts-only budgets

Spend cap budgets (this page)

Overview of spend cap budgets

Before setting up a spend cap budget, review the information in this section, which includes the list of eligible services and possible spend cap states. We also recommend reviewing limitations of spend cap budgets later on this page.

You can also find a list of FAQ about spend cap budgets in the Google Cloud documentation.

Eligible services

Spend caps budgets can be set up for the following Firebase services:

We're working to add to this list of eligible services for spend cap budgets, so check back on this list periodically.

Spend cap states

A spend cap can be in one of the following states:

Set up and manage spend caps

  1. Configure a spend cap budget. Configure a spend cap budget so that Cloud Billing can start actively monitoring your project's spending for a specific service.

  2. Understand alerts and spend cap enforcement. If your project's spending reaches certain thresholds of your monthly budget for that service, Cloud Billing sends alert emails and enforces the spend cap. Enforcement means any new usage of that service is paused for the rest of that month.

  3. Optionally lift an enforced spend cap (or increase its budget). If you want to resume usage for a paused service that month (either with no limit or under a higher budget), you need to explicitly lift the enforced spend cap.

Required permissions

To set up and manage a spend cap budget, you need admin-level access to the project and its linked Cloud Billing account. Any of the following options grant you the required permissions:

Configure a spend cap budget

For Cloud Billing to actively start monitoring your spending for a service, you need to configure a spend cap budget for that service. If your project reaches certain spending thresholds for that service, then Cloud Billing will send alert emails and enforce the spend cap.

Here's how to configure spend cap budgets using the Firebase console:

  1. Access your project in the Firebase console, then go to the settings Settings > Usage and billing > Details & settings page.
  2. Go to the Service-level spend caps card.
  3. Locate the service you want to cap, set your monthly budget amount, and then click Configure.
    • A spend cap budget is scoped to a single project and a single eligible service within that project.
    • The time range for a spend cap budget is monthly, starting on the first day of each month.

Note that you can also configure spend caps budgets using the Google Cloud console.

Alert emails and spend cap enforcement

After you configure a spend cap budget, Cloud Billing will actively monitor your project's spending for that service. It will send alert emails and enforce the spend cap based on the following spending thresholds for that service's spend cap budget:

Lift an enforced spend cap

If a spend cap is triggered and enforced, all new usage for the applicable service is paused for the rest of the month unless you explicitly lift the enforced spend cap.

Here's how to lift an enforced spend cap using the Firebase console:

  1. Access your project in the Firebase console, then go to the settings Settings > Usage and billing > Details & settings page.
  2. Go to the Service-level spend caps card.
  3. Locate the service with an enforced spend cap, and then click Lift.

Note that you can also lift enforced spend caps using the Google Cloud console.

Increase a spend cap after enforcement

If your spend cap is enforced and you want to resume the service under a higher budget for the remainder of the month (for example, increasing your limit from $10 to $20), you cannot edit the budget amount while the cap is in the Enforced state. You must lift the cap first before setting a higher limit.

Here's how to resume a service and increase its spend cap:

  1. Lift the spend cap: In the Firebase console or Google Cloud console, locate the enforced service, and then click Lift. The spend cap will enter a pending state while enforcement is removed.
  2. Wait for the lift to complete: Wait a few minutes and refresh the page until the spend cap status displays Lifted. The service will resume. Depending on the service, this can take up to one hour.
  3. Update the budget amount: Edit the spend cap budget by entering your new, higher monthly budget amount. Save your changes.

Important considerations when raising a cap:

Limitations of spend cap budgets

The following are important limitations to understand about spend cap budgets: