Cloud Monitoring provides Cloud Run performance monitoring, metrics, and uptime checks, along with alerts to send notifications when certain metric thresholds are exceeded.
Built-in metrics
Cloud Run is automatically integrated with Cloud Monitoring with no setup or configuration required. This means that metrics of your Cloud Run resources are captured automatically when they are running.
You can view metrics either in Cloud Monitoring or in the Cloud Run resource pages in the console. Cloud Monitoring provides more charting and filtering options.
Key Cloud Run metrics include the following:
| Metric | Services | Jobs |
|---|---|---|
| Billable container instance time | ✓ | ✓ |
| Container CPU allocation | ✓ | ✓ |
| Container CPU utilization | ✓ | ✓ |
| Container memory allocation | ✓ | ✓ |
| Container memory utilization | ✓ | ✓ |
| Container startup latency | ✓ | ✓ |
| Container GPU memory usage | ✓ | ✓ |
| Container GPU memory utilization | ✓ | ✓ |
| Container GPU utilization | ✓ | ✓ |
| Container instance count | ✓ | |
| Request count | ✓ | |
| Request latencies | ✓ | |
| Maximum concurrent requests | ✓ | |
| Received bytes | ✓ | ✓ |
| Sent bytes | ✓ | ✓ |
| Completed executions | ✓ | |
| Completed task attempts | ✓ | |
| Running executions | ✓ | |
| Running task attempts | ✓ |
For a list of all available Cloud Run metrics and more in-depth details, refer to the full overview of Cloud Run metrics in Cloud Monitoring.
Resource types
The monitoring resource names for Cloud Run are:
- Cloud Run Revision (
cloud_run_revision) - Cloud Run Job (
cloud_run_job)
View metrics in Cloud Run
You can view metrics for your Cloud Run resource in the corresponding Cloud Run page in the Cloud de Confiance console.
Services
To view service metrics in the Cloud Run page:
In the Cloud de Confiance console, go to the Cloud Run page:
Click Services in the Cloud Run navigation menu.
Locate the service in the services list, and click on it.
Click the Metrics tab to show the metrics for that service.
Metrics charts for Cloud Run services display deployment events.
Jobs
To view job metrics in the Cloud Run page:
In the Cloud de Confiance console, go to the Cloud Run page:
Click Jobs in the Cloud Run navigation menu.
Click the job in the jobs list.
Click the Metrics tab to show the metrics for that job.
View metrics in Cloud Monitoring
To use Metrics Explorer to view the metrics for a monitored resource, follow these steps:
-
In the Cloud de Confiance console, go to the leaderboard Metrics explorer page:
If you use the search bar to find this page, then select the result whose subheading is Monitoring.
- Select the Configuration tab, and then enter or select a
Resource type and a Metric. Use the following information to
complete the fields:
- For the Resource, select the resource type .
- For the Metric, select one of the metrics in menu. For a full description of the available metrics, see: Monitoring Cloud de Confiance metrics page.
- (Optional) To configure how the data is viewed, use the Filter, Group By, and Aggregator menus. For example, you can group by resource or metric labels. For more information, see Selecting metrics.