[null,null,["最后更新时间 (UTC):2025-08-12。"],[],[],null,["\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nAs part of managing your Firebase projects, you'll want to review usage of\nCloud Storage (for example, how many Bytes are being stored, how many\ndownload requests are coming from your apps).\n\nTo review your Cloud Storage billed usage, check the\n[*Usage and Billing* dashboard](//console.firebase.google.com/project/_/usage).\n\nFor resource usage, both the Cloud Storage **Usage** tab in the\nFirebase console and the metrics available through Cloud Monitoring can\nhelp you monitor Cloud Storage usage. This kind of monitoring can help\nyou spot potential problems in your app. Looking at your app's usage can also\ngive you insight into your bill. Additionally, if something seems off, getting a\nclear picture of your Cloud Storage bucket's operations (for example, by\nmonitoring evaluation of Cloud Storage Security Rules) can be a helpful for\ntroubleshooting.\n\nFirebase console\n\nThe Firebase console includes a usage dashboard that shows Storage Bytes\nstored, object count, bandwidth, and download requests over time. Storage\nmetrics (Bytes stored and object count) are updated within 24 hours. Usage\nmetrics (bandwidth and download requests) are updated every few hours.\n\n[Go to the Usage page](https://console.firebase.google.com/project/_/storage/usage)\n| **Note:** As a result of how the dashboard computes usage, the numbers reported can differ slightly from billing reports. The billing reports are the final usage numbers.\n\n\u003cbr /\u003e\n\nAdditionally, the Firebase console provides a Firebase Security Rules evaluation dashboard,\na useful, at-a-glance view of rules invocations. You can supplement this\ndashboard with detailed analysis in Cloud Monitoring.\n\n[Go to the Rules page](https://console.firebase.google.com/project/_/storage/rules)\n\nGoogle Cloud console\n\nSince a Firebase project is just a Google Cloud project with Firebase services\nand configurations added, you can view your project in the\nGoogle Cloud console.\n\nIf you have a default Cloud Storage bucket with the name format\n`*.appspot.com`, then its usage can be viewed in the\n**App Engine Quotas** page in the Google Cloud console. This page tracks daily\nstorage usage information including Bytes stored, object counts, bandwidth used,\nand download requests.\n\nCloud Monitoring\n\n[Cloud Monitoring](https://cloud.google.com/monitoring/docs/) collects\nmetrics, events, and metadata from Google Cloud products that you can use to\ncreate dashboards, charts, and alerts. Cloud Monitoring includes the\nfollowing Security Rules-related Cloud Storage metrics:\n\nSampling rate\n: The Cloud Storage metrics are sampled every 60 seconds, but updates may take up to 4 minutes to show up in your dashboards.\n\nUsing these metrics, you can set up a Cloud Storage dashboard like the\nfollowing:\n\nComplete the steps below to start monitoring Cloud Storage with\nCloud Monitoring.\n\nCreate a Cloud Monitoring workspace\n\nTo monitor Firebase with Cloud Monitoring, you must set\nup a workspace for your project. A workspace organizes\nmonitoring information from one or more projects. After setting up a workspace,\nyou can create custom dashboards and alerting policies.\n\n1. [Open the Cloud Monitoring Page](https://console.cloud.google.com/monitoring/)\n\n If your project is already part of a workspace, the Cloud Monitoring Page\n opens. Otherwise, select a workspace for your project.\n2. Select the **New Workspace** option or select an existing workspace.\n\n3. Click **Add**. After your workspace builds, the Cloud Monitoring Page opens.\n\nCreate a dashboard and add a chart\n\nDisplay the Firebase metrics collected from\nCloud Monitoring in your own charts and dashboards.\n\nBefore you proceed, make sure your project is part of a\n[Cloud Monitoring workspace](#stackdriver-setup).\n\n1. In the Cloud Monitoring Page, open your workspace and go to the\n **Dashboards** page.\n\n [Go to the Dashboards page](https://console.cloud.google.com/monitoring/dashboards)\n2. Click **Create Dashboard** and enter a dashboard name.\n\n3. In the upper-right hand corner, click **Add Chart**.\n\n4. In the **Add Chart** window, enter a chart title. Click the **Metric** tab.\n\n5. In the **Find resource type and metric** field, enter **Cloud Storage for Firebase** . From the auto-populated dropdown, select one of the Cloud Storage metrics..\n\n6. To add more metrics to the same chart, click **Add Metric** and repeat the previous step.\n\n7. Optionally, tailor your chart as needed. For example, in the **Filter** field, click **+ Add a filter**. Scroll down, then select a value or range for the metric of interest you wish to filter the chart on.\n\n8. Click **Save**.\n\nFor more on Cloud Monitoring charts,\nsee [Working with charts](https://cloud.google.com/monitoring/charts/).\n\nCreate an alerting policy\n\nYou can create an alerting policy based on the Firebase metrics.\nFollow the steps below can create an alerting policy that emails you whenever a\nspecific Firebase metric meets a certain threshold.\n\nBefore you proceed, make sure your project is part of a\n[Cloud Monitoring workspace](#stackdriver-setup).\n\n1. In the Cloud Monitoring Page, open your workspace, and go to\n the **Alerting** page.\n\n [Go to the Create New Alerting Policy page](https://console.cloud.google.com/monitoring/alerting)\n2. Click **Create Policy**.\n\n3. Enter a name for your alerting policy.\n\n4. Add an alerting condition based on one of the Firebase metrics.\n Click **Add Condition**.\n\n5. Select a **Target** . In the **Find resource type and metric** field, enter **Cloud Storage for Firebase** . From the auto-populated dropdown, select one of the Cloud Storage metrics.\n\n6. Under **Policy triggers**, use the dropdown fields to define your alerting\n condition.\n\n7. Add a notification channel to your alerting policy. Under **Notifications** ,\n Click **Add Notification Channel** . Select **Email** from the dropdown menu.\n\n8. Enter your email in the **Email address** field. Click **Add**.\n\n9. Optionally, fill out the documentation field to include additional information\n in your email notification.\n\n10. Click **Save**.\n\nIf your Cloud Storage usage exceeds the configured threshold, you\nwill receive an email alert.\n\nFor more on alerting policies, see\n[Introduction to alerting](https://cloud.google.com/monitoring/alerts/).\n\nWhat's next\n\n- [Learn more about Cloud Monitoring.](https://cloud.google.com/monitoring/docs/)"]]