تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
كجزء من إدارة مشاريعك على Firebase، عليك مراجعة استخدام
Cloud Storage (على سبيل المثال، عدد وحدات البايت التي يتم تخزينها، وعدد طلبات التنزيل الواردة من تطبيقاتك).
لمراجعة Cloud Storage الاستخدام الذي تم تحصيل رسوم مقابله، اطّلِع على
لوحة بيانات الاستخدام والفوترة.
بالنسبة إلى استخدام الموارد، يمكن أن تساعدك علامة التبويب Cloud Storageالاستخدام في وحدة تحكّم Firebase والمقاييس المتاحة من خلال Cloud Monitoring في تتبُّع استخدام Cloud Storage. يمكن أن تساعدك عملية المراقبة هذه في رصد المشاكل المحتملة في تطبيقك، كما أنّ الاطّلاع على استخدام تطبيقك يمكن أن يقدّم لك معلومات عن فاتورتك. بالإضافة إلى ذلك، إذا بدا أنّ هناك مشكلة، يمكن أن يكون الحصول على صورة واضحة لعمليات مجموعة Cloud Storage (على سبيل المثال، من خلال مراقبة تقييم Cloud Storage Security Rules) مفيدًا في تحديد المشاكل وحلّها.
Firebase وحدة التحكّم
تتضمّن وحدة تحكّم Firebase لوحة بيانات الاستخدام التي تعرض وحدات بايت التخزين المخزّنة وعدد العناصر وعرض النطاق الترددي وطلبات التنزيل بمرور الوقت. يتم تعديل مقاييس سعة التخزين (عدد البايتات المخزَّنة وعدد العناصر) في غضون 24 ساعة. يتم تعديل مقاييس الاستخدام (معدل نقل البيانات وطلبات التنزيل) كل بضع ساعات.
بالإضافة إلى ذلك، توفّر وحدة تحكّم Firebase لوحة بيانات تقييم Firebase Security Rules، وهي عرض مفيد وسريع لعمليات استدعاء القواعد. يمكنك إضافة تحليل تفصيلي إلى لوحة البيانات هذه في Cloud Monitoring.
بما أنّ مشروع Firebase هو مجرد مشروع Google Cloud تمّت إضافة خدمات وإعدادات Firebase إليه، يمكنك الاطّلاع على مشروعك في وحدة تحكّم Google Cloud.
إذا كان لديك حزمة Cloud Storage تلقائية بتنسيق الاسم
*.appspot.com، يمكنك الاطّلاع على استخدامها في صفحة
حصص App Engine في وحدة تحكّم Google Cloud. تتتبّع هذه الصفحة معلومات استخدام التخزين اليومي، بما في ذلك وحدات البايت المخزّنة وعدد العناصر وعرض النطاق الترددي المستخدَم وطلبات التنزيل.
Cloud Monitoring
تجمع خدمة Cloud Monitoring المقاييس والأحداث والبيانات الوصفية من منتجات Google Cloud التي يمكنك استخدامها لإنشاء لوحات بيانات ورسوم بيانية وتنبيهات. يتضمّن Cloud Monitoring مقاييس Cloud Storage التالية ذات الصلة بقواعد الأمان:
اسم المقياس
الوصف
تقييمات القواعد
عدد عمليات التقييم التي تم إجراؤها استجابةً لطلبات الكتابة أو القراءةCloud Storage Security Rules يمكنك تقسيم هذا المقياس حسب نتيجة الطلب (ALLOW أو DENY أو ERROR) أو اسم المجموعة.
معدّل أخذ العيّنات
يتم أخذ عيّنات من مقاييس Cloud Storage كل 60 ثانية، ولكن قد يستغرق ظهور التعديلات في لوحات البيانات مدة تصل إلى 4 دقائق.
باستخدام هذه المقاييس، يمكنك إعداد لوحة بيانات Cloud Storage مثل ما يلي:
أكمِل الخطوات أدناه لبدء مراقبة Cloud Storage باستخدام Cloud Monitoring.
إنشاء مساحة عمل في Cloud Monitoring
لمراقبة Firebase باستخدام Cloud Monitoring، يجب إعداد مساحة عمل لمشروعك. تنظّم مساحة العمل معلومات المراقبة من مشروع واحد أو أكثر. بعد إعداد مساحة عمل، يمكنك إنشاء لوحات بيانات مخصّصة وسياسات تنبيه.
انقر على إنشاء لوحة بيانات وأدخِل اسمًا للوحة البيانات.
في أعلى يسار الصفحة، انقر على إضافة رسم بياني.
في نافذة إضافة رسم بياني، أدخِل عنوان الرسم البياني. انقر على علامة التبويب المقياس.
في حقل البحث عن نوع المورد والمقياس، أدخِل Cloud Storage for Firebase. من القائمة المنسدلة التي تتم تعبئتها تلقائيًا، اختَر أحد مقاييس Cloud Storage.
لإضافة المزيد من المقاييس إلى الرسم البياني نفسه، انقر على إضافة مقياس وكرِّر الخطوة السابقة.
يمكنك تخصيص الرسم البياني حسب الحاجة. على سبيل المثال، في الحقل فلتر، انقر على + إضافة فلتر. انتقِل للأسفل، ثم اختَر قيمة أو نطاقًا للمقياس الذي يهمّك والذي تريد فلترة الرسم البياني استنادًا إليه.
يمكنك إنشاء سياسة تنبيه استنادًا إلى مقاييس Firebase.
يمكنك اتّباع الخطوات التالية لإنشاء سياسة تنبيه تُرسل إليك رسالة إلكترونية عندما يستوفي مقياس Firebase معيّن حدًا معيّنًا.
أضِف شرط تنبيه استنادًا إلى أحد مقاييس Firebase.
انقر على إضافة شرط.
اختَر هدفًا. في حقل البحث عن نوع المورد والمقياس، أدخِل Cloud Storage for Firebase. من القائمة المنسدلة التي تتم تعبئتها تلقائيًا، اختَر أحد مقاييس Cloud Storage.
ضمن مشغّلات السياسة، استخدِم الحقول المنسدلة لتحديد شرط التنبيه.
أضِف قناة إشعارات إلى سياسة التنبيه. ضمن الإشعارات، انقر على إضافة قناة إشعارات. اختَر البريد الإلكتروني من القائمة المنسدلة.
أدخِل عنوان بريدك الإلكتروني في حقل عنوان البريد الإلكتروني. انقر على إضافة.
يمكنك ملء حقل المستندات لتضمين معلومات إضافية في الإشعار الذي يتم إرساله عبر البريد الإلكتروني.
انقر على حفظ.
إذا تجاوز استخدامك Cloud Storage الحدّ الذي تم ضبطه، ستتلقّى تنبيهًا عبر البريد الإلكتروني.
تاريخ التعديل الأخير: 2025-09-06 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-06 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],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/)"]]