Use the monitoring dashboard to identify and troubleshoot performance issues on your site. This article shows you how to monitor metrics, investigate problems, and optimize your site's performance.
Access the monitoring dashboard from either the code editor or your site's dashboard:
Start by reviewing the overview section to spot problems:
Check the overview section at the top of the dashboard for exclamation icons indicating areas that need attention.
Note the key metrics:
Navigate to the appropriate breakdown tab based on what needs attention:
When you have issues with backend code:
Navigate to the Backend Requests tab.
Check the Failed Requests graph to identify the main failure type:
In the Top Backend Functions table, sort by the relevant metric:
Note the problematic function name.
Apply a filter to view data for just that function:
Review the Request Durations graph to understand typical performance for this function.
Apply these solutions based on your findings:
For timeout issues:
For RPM throttling:
For errors:
When you have issues with data operations:
Navigate to the Data Requests tab.
Check the Failed Requests graph to identify the main failure type.
In the Top Data Requests table, sort by the relevant metric to find problematic queries.
Note the collection name and operation type (query, insert, update, remove).
Apply filters for the specific collection and operation:
Review the Request Durations graph to understand query performance.
Apply these solutions:
When storage usage is high:
Navigate to the Content Collection Storage tab.
Review the Collection Storage Breakdown table.
Sort by storage size to identify the largest collections.
Identify collections that are:
Apply these strategies:
This complete example shows how to investigate and fix timed-out backend requests:
The problem: The overview shows 622 failed backend requests over the past 30 days.
Investigation:
Navigate to the Backend Requests tab and check the Failed Requests graph. Most failures are timeouts (turquoise line).
In the Top Backend Functions table, click the Timed-Out column to sort in descending order. The getUserDetails function has the most timeouts.
Select getUserDetails from the function filter dropdown to view data specific to this function.
The Request Durations graph shows the median duration is high, confirming performance issues.
The Failed Requests graph shows timeouts spike on specific days, suggesting the issue is triggered by certain conditions or traffic patterns.
Open Google Cloud Logs and search for getUserDetails to find error messages and execution details.
The solution:
After reviewing the logs, you discover the function makes multiple sequential data queries. You refactor the code to:
Verification:
After publishing the changes, you check the dashboard daily for a week. The timeout count drops to near zero, confirming the fix worked.