리소스 사용량의 경우 Firebase Console의 Cloud Storage사용량 탭과 Cloud Monitoring을 통해 제공되는 측정항목이 Cloud Storage 사용량을 모니터링하는 데 도움이 될 수 있습니다. 이러한 유형의 모니터링으로 앱에서 잠재적인 문제를 발견할 수 있으며 앱 사용량을 살펴보면 청구 비용을 예상할 수 있습니다. 또한 Cloud Storage 버킷의 작업(예: Cloud Storage Security Rules의 평가 모니터링)을 명확하게 파악할 수 있어 이상이 발견될 경우 문제 해결 도구로도 유용합니다.
Firebase 콘솔
Firebase Console에는 시간 경과에 따른 저장된 스토리지 바이트 수, 객체 수, 대역폭, 다운로드 요청 수를 보여주는 사용량 대시보드가 있습니다. 스토리지 측정항목(저장된 바이트 및 객체 수)은 24시간 내에 업데이트됩니다. 사용량 측정항목(대역폭 및 다운로드 요청)은 몇 시간마다 업데이트됩니다.
Firebase 프로젝트는 Firebase 서비스 및 구성이 추가된 Google Cloud 프로젝트이므로 Google Cloud 콘솔에서 프로젝트를 볼 수 있습니다.
이름 형식이 *.appspot.com인 기본 Cloud Storage 버킷이 있으면 Google Cloud 콘솔의 App Engine 할당량 페이지에서 사용량을 볼 수 있습니다. 이 페이지에서는 저장된 바이트 수, 객체 수, 사용된 대역폭, 다운로드 요청 수를 포함한 일일 스토리지 사용량 정보를 추적합니다.
Cloud Monitoring
Cloud Monitoring은 대시보드, 차트, 알림을 만드는 데 사용할 수 있는 Google Cloud 제품의 측정항목, 이벤트, 메타데이터를 수집합니다. Cloud Monitoring에는 다음과 같은 보안 규칙 관련 Cloud Storage 측정항목이 포함됩니다.
측정항목 이름
설명
규칙 평가
쓰기 또는 읽기 요청에 대한 응답으로 수행된 Cloud Storage Security Rules의 평가 수입니다. 요청의 결과(ALLOW, DENY 또는 ERROR)나 버킷 이름을 기준으로 이 측정항목을 분류할 수 있습니다.
샘플링 레이트
Cloud Storage 측정항목은 60초마다 샘플링되지만 업데이트 내용이 대시보드에 표시되려면 최대 4분이 걸릴 수 있습니다.
이러한 측정항목을 사용하여 다음과 같은 Cloud Storage 대시보드를 설정할 수 있습니다.
Cloud Monitoring으로 Cloud Storage 모니터링을 시작하려면 아래 단계를 완료하세요.
Cloud Monitoring 작업공간 만들기
Cloud Monitoring으로 Firebase를 모니터링하려면 프로젝트에 작업공간을 설정해야 합니다. 작업공간은 하나 이상의 프로젝트로 모니터링 정보를 구성합니다. 작업공간을 설정한 후 커스텀 대시보드 및 알림 정책을 만들 수 있습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],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\n| Metric Name | Description |\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Rule evaluations | The number of Cloud Storage Security Rules evaluations performed in response to write or read requests. You can break this metric down by the result of the request (ALLOW, DENY, or ERROR) or the bucket name. |\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/)"]]