Cloud Monitoring provides Cloud Run performance monitoring, metrics, and uptime checks, along with alerts to send notifications when certain metric thresholds are exceeded. Google Cloud's operations suite pricing applies, which means there is no charge for metrics on the fully managed version of Cloud Run.
Cloud Run is automatically integrated with Cloud Monitoring with no setup or configuration required. This means that metrics of your Cloud Run services are captured automatically when they are running.
You can view metrics either in Cloud Monitoring or in the Cloud Run page in the console. Cloud Monitoring provides more charting and filtering options.
Create custom metrics
If you need custom metrics when using Cloud Run you should use Log Based Metrics. Creating custom metrics using the Cloud Monitoring API, or a Monitoring client library, or libraries like Open Census, isn't supported.
The monitoring resource name is Cloud Run Revision (
Viewing metrics in Cloud Run
To view metrics in Cloud Run:
Locate the service in the services list, and click on it.
Click the Metrics tab to show the metrics for that revision.
Viewing metrics in Cloud Monitoring
To use Metrics Explorer to view the metrics for a monitored resource, follow these steps:
- In the Google Cloud console, go to the Monitoring page.
- In the Monitoring navigation pane, click Metrics Explorer.
- In the toolbar, select the Explorer tab.
- Select the Configuration tab, and then enter or select a Resource type and a Metric. Use the following information to complete the fields:
- (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.
Adding Uptime checks
You can use Cloud Monitoring to keep track of your services' performance. For more information, see Verify availability of your service(uptime checks).
You can use Cloud Monitoring to send notification about certain
events, such as uptime check failures. For more information, see
Create and manage alerting policies for your service.