[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-09-03。"],[],[],null,["# Monitor Health and Performance\n\n[Cloud Monitoring](/monitoring/docs) provides\nCloud Run performance monitoring, [metrics](/monitoring/api/metrics_gcp_p_z#gcp-run),\nand [uptime checks](/monitoring/uptime-checks),\nalong with [alerts](/monitoring/alerts) to send\nnotifications when certain metric thresholds are exceeded.\n[Google Cloud Observability pricing](/stackdriver/pricing)\napplies, which means there is no charge for metrics on the fully managed version\nof Cloud Run.\n\nCloud Run incidents are published to [Personalized Service Health](/service-health/docs/overview).\nYou should consider [setting up alerts on Personalized Service Health events](/service-health/docs/configure-alerts-dashboard).\n\nBuilt-in metrics\n----------------\n\nCloud Run is automatically integrated with Cloud Monitoring\n**with no setup or configuration required**. This means that metrics of your\nCloud Run services, jobs, and worker pools are captured automatically\nwhen they are running.\n\nYou can view metrics either in Cloud Monitoring or in the Cloud Run\nservice, jobs, and worker pools pages in the console. Cloud Monitoring provides more\ncharting and filtering options.\n\nKey Cloud Run metrics include the following:\n\nFor a list of all available Cloud Run metrics and more in-depth details, refer\nto the [full overview of Cloud Run metrics](/monitoring/api/metrics_gcp_p_z#gcp-run)\nin Cloud Monitoring.\n\nCreate custom metrics\n---------------------\n\nTo generate custom metrics from your Cloud Run service, you can deploy\na sidecar agent such as [OpenTelemetry](/run/docs/tutorials/custom-metrics-opentelemetry-sidecar)\nor [Prometheus](/run/docs/monitoring-managed-prometheus-sidecar).\n\nAlternatively, you can use [log-based metrics](/logging/docs/logs-based-metrics)\nto collect custom metrics.\n\nResource types\n--------------\n\nThe monitoring resource names for Cloud Run are:\n\n- *Cloud Run Revision* ([`cloud_run_revision`](/monitoring/api/resources#tag_cloud_run_revision))\n- *Cloud Run Job* ([`cloud_run_job`](/monitoring/api/resources#tag_cloud_run_job))\n- *Cloud Run Worker Pool* ([`cloud_run_worker_pool`](/monitoring/api/resources#tag_cloud_run_worker_pool))\n\nView metrics in Cloud Run\n-------------------------\n\nYou can view metrics for services, jobs, and worker pools in the corresponding\nservice, jobs, and worker pools pages.\n\n### View metrics for a service\n\nTo view service metrics in the Cloud Run page:\n\n1. [Go to Cloud Run](https://console.cloud.google.com/run)\n\n2. Click the **Services** tab.\n\n3. Locate the service in the services list, and click on it.\n\n4. Click the **METRICS** tab to show the metrics for that service.\n\nMetrics charts for Cloud Run services display deployment events.\n\n### View metrics for a job\n\nTo view job metrics in the Cloud Run page:\n\n1. [Go to Cloud Run](https://console.cloud.google.com/run)\n\n2. Click the **JOBS** tab\n\n3. Click the job in the jobs list.\n\n4. Click the **METRICS** tab to show the metrics for that job.\n\n### View metrics for a worker pool\n\nTo view worker pool metrics in the Cloud Run page:\n\n1. [Go to Cloud Run](https://console.cloud.google.com/run)\n\n2. Click the **Worker pools** tab.\n\n3. Locate the worker pool in the worker pools list, and click on it.\n\n4. Click the **METRICS** tab to show the metrics for that worker pool.\n\nMetrics charts for Cloud Run worker pools display deployment events.\n\nView metrics in Cloud Monitoring\n--------------------------------\n\n\nTo use Metrics Explorer to view the metrics for a monitored resource, follow these steps:\n\n1. In the Google Cloud console, go to the\n *leaderboard* **Metrics explorer** page:\n\n [Go to **Metrics explorer**](https://console.cloud.google.com/monitoring/metrics-explorer)\n\n \u003cbr /\u003e\n\n If you use the search bar to find this page, then select the result whose subheading is\n **Monitoring**.\n2. Select the **Configuration** tab, and then enter or select a **Resource type** and a **Metric** . Use the following information to complete the fields:\n 1. For the **Resource** , select the [resource type (service, job, or worker pool)](#resource-types).\n 2. For the **Metric** , select one of the metrics in menu. For a full description of the available metrics, see: [Monitoring Google Cloud metrics page](/monitoring/api/metrics_gcp_p_z#gcp-run).\n3. (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](/monitoring/charts/metrics-selector).\n\nAdd Uptime checks\n-----------------\n\nYou can use Cloud Monitoring to keep track of your services'\nperformance. For more information, see\n[Verify availability of your service](/monitoring/uptime-checks)(uptime checks).\n\nAdd Alerts\n----------\n\nYou can use Cloud Monitoring to send notification about certain\nevents, such as uptime check failures. For more information, see\n[Create and manage alerting policies](/monitoring/alerts) for your service."]]