[[["易于理解","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-08-28。"],[],[],null,["# Chart uptime-check metrics\n\nTo understand the responsiveness of the service being monitored,\nchart the latency metric of an uptime check. Similarly,\nto understand which regions are responding successfully to an uptime check,\nchart the status metric of an uptime check.\n\nThis document describes how to chart metrics generated by uptime checks by\nusing [Metrics Explorer](/monitoring/charts/metrics-explorer).\nFor information about how to save these charts to a custom dashboard, see\n[Save a chart for future reference](/monitoring/charts/metrics-explorer#save).\n\nBefore you begin\n----------------\n\nYou must have an uptime check to use these instructions. If you haven't\ncreated an uptime check, then see\n[Create public uptime checks](/monitoring/uptime-checks)\nor [Create private uptime checks](/monitoring/uptime-checks/private-checks).\n\nChart uptime-check status\n-------------------------\n\nYou can use the Cloud Monitoring `uptime_check/check_passed` metric as the basis for a chart that displays the status of an uptime check. The following example charts, by location, the number of passed checks in a one-minute window:\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. In the toolbar of the Google Cloud console, select your Google Cloud project. For [App Hub](/app-hub/docs/overview) configurations, select the App Hub host project or the app-enabled folder's management project.\n3. In the **Metric** element, expand the **Select a metric** menu, enter `Check passed` in the filter bar, and then use the submenus to select a specific resource type and metric:\n 1. In the **Active resources** menu, select the resource monitored by the uptime check.\n 2. In the **Active metric categories** menu, select **Uptime_check**.\n 3. In the **Active metrics** menu, select **Check passed**.\n 4. Click **Apply**.\n\n The fully qualified name for this metric is `monitoring.googleapis.com/uptime_check/check_passed`.\n4. Configure how the data is viewed.\n 1. In the **Filter** element, expand the menu and select **check_id**, and then select a specific checker.\n 2. In the **Aggregation** element, expand the first menu and select **Configure aligner** . The **Alignment function** and **Grouping** elements are added.\n 3. In the **Alignment function** element, expand the menu and select **Next older**.\n 4. In the **Grouping** element, expand the first menu and select **Count true**.\n\n For more information about configuring a chart, see\n [Select metrics when using Metrics Explorer.](/monitoring/charts/metrics-selector)\n\nBecause the uptime check is configured to execute every minute, it is expected that every location responds approximately 10 times in a 10-minute alignment period.\n\nChart uptime-check latency\n--------------------------\n\nYou can use the Monitoring `uptime_check/request_latency` metric as a basis for uptime-check latency charts. Your choices for the grouping fields let you create different charts. You can, for example, set these fields to display the maximum latency or to display the total latency:\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. In the toolbar of the Google Cloud console, select your Google Cloud project. For [App Hub](/app-hub/docs/overview) configurations, select the App Hub host project or the app-enabled folder's management project.\n3. In the **Metric** element, expand the **Select a metric** menu, enter `Request latency` in the filter bar, and then use the submenus to select a specific resource type and metric:\n 1. In the **Active resources** menu, select the resource monitored by the uptime check.\n 2. In the **Active metric categories** menu, select **Uptime_check**.\n 3. In the **Active metrics** menu, select **Request latency**.\n 4. Click **Apply**.\n\n The fully qualified name for this metric is `monitoring.googleapis.com/uptime_check/request_latency`.\n4. Configure how the data is viewed.\n 1. In the **Filter** element, expand the menu and select **check_id**, and then select a specific checker.\n 2. In the **Aggregation** element, expand the first menu and select **Mean** , and then expand the second menu and select **checker_location**.\n\n For more information about configuring a chart, see\n [Select metrics when using Metrics Explorer.](/monitoring/charts/metrics-selector)\n\nWhat's next\n-----------\n\n- [Create and manage custom dashboards](/monitoring/charts/dashboards)\n- [Uptime check metrics](/monitoring/api/metrics_gcp_i_o#monitoring/uptime_check/check_passed)"]]