[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-18 (世界標準時間)。"],[[["\u003cp\u003eDisk metrics allow users to monitor disk performance and identify potential issues, addressing questions about average read IOPS, operation latency, and queue depth.\u003c/p\u003e\n"],["\u003cp\u003eCompute Engine automatically collects Persistent Disk metrics, which can be viewed through Cloud Monitoring, REST API, client libraries, Metrics Query Language (MQL), and PromQL.\u003c/p\u003e\n"],["\u003cp\u003eA range of disk-specific metrics are available, including performance status, average I/O latency, queue depth, read/write bytes, read/write operations, and peak read/write metrics.\u003c/p\u003e\n"],["\u003cp\u003eUsers can visualize disk performance using Metrics Explorer within Cloud Monitoring, allowing them to chart metrics like average latency and filter data by instance and device name.\u003c/p\u003e\n"],["\u003cp\u003eIn addition to monitoring performance metrics, users are also encouraged to review disk optimization guidelines and monitor disk health for comprehensive management.\u003c/p\u003e\n"]]],[],null,["*** ** * ** ***\n\nYou can use disk metrics to observe your disks' performance and debug\nperformance problems.\n\nDisk metrics can help you answer questions such as the following:\n\n- What's the average read IOPS for a virtual machine (VM) instance's disks?\n- On average, what's the latency for read or write operations?\n- What's the average [queue depth](/compute/docs/disks/optimizing-pd-performance#io-queue-depth) for a specific disk?\n\nReview your disk's metrics to ensure its performance is sufficient for your\nworkload. In addition, you should also do the following:\n\n- Review the disk optimization guidelines. For more information,\n see [Optimize Google Cloud Hyperdisk](/compute/docs/disks/optimize-hyperdisk)\n and [Optimize Persistent Disk](/compute/docs/disks/optimizing-pd-performance).\n\n- Check the disk's health. For detailed information about disk health, see\n [Monitor disk health](/compute/docs/disks/disk-health).\n\nThis document discusses the Persistent Disk metrics Compute Engine automatically collects\nfrom each VM and how to view them in [Cloud Monitoring](/monitoring/docs/monitoring-overview),\nwhich is Google Cloud's monitoring solution.\n\nAvailable Persistent Disk metrics\n\nYou can view metrics in Cloud Monitoring, or programmatically retrieve\nPersistent Disk metrics using the [REST API](/monitoring/api), [client libraries](/monitoring/docs/reference/libraries), [Metrics Query Language (MQL)](/monitoring/mql),\nand [PromQL](/monitoring/promql).\n\nThe following table lists the disk-specific metrics available for every disk. You can collect additional metrics\nif you install the [Ops Agent](/monitoring/agent/ops-agent) on your VM.\n\nFor a full list of Compute Engine metrics, see\n[Compute Engine metrics](/monitoring/api/metrics_gcp_c#gcp-compute).\n\nEach metric type in this table must be prefixed with `compute.googleapis.com/`,\nwhich has been omitted from the table for readability. \n\n| Display name `(Metric type)` | Description |\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| **Disk performance status** ^BETA^ `(instance/disk/disk_performance_status)` | The disk's health over the last minute. This metric indicates if the disk is performing normally or if its performance is affected by an incident within Compute Engine. Possible values are `Healthy`, `Degraded`, and `Severely Degraded`. For more information, see [Monitor a disk's health](/compute/docs/disks/disk-health). |\n| **Average I/O latency** `(instance/disk/average_io_latency)` | The disk's average read/write latency, in microseconds, for the last minute. |\n| **Average I/O queue depth** `(instance/disk/average_io_queue_depth)` | The disk's average queue depth for read/write operations over the last minute. |\n| **Disk read bytes** `(instance/disk/read_bytes_count)` | Average read throughput, or, the average number of bytes read or written over a period of time specified by the user^\\*^. |\n| **Disk write bytes** `(instance/disk/write_bytes_count)` | Average write throughput, or, the average number of bytes written over a period of time specified by the user^\\*^. |\n| **Disk read operations** `(instance/disk/read_ops_count)` | The average number of read operations over a period of time specified by the user^\\*^. |\n| **Disk write operations** `(instance/disk/write_ops_count)` | The average number of write operations over a period of time specified by the user^\\*^. |\n| **Peak disk read bytes** `(instance/disk/max_read_bytes_count)` | Peak read throughput, the maximum number of bytes read per second over a period of time specified by the user^\\*^. |\n| **Peak disk write bytes** `(instance/disk/max_write_bytes_count)` | Peak write throughput, the maximum number of bytes written per second over a period of time specified by the user^\\*^. |\n| **Peak disk read ops** `(instance/disk/max_read_ops_count)` | The maximum number of read operations per second over a period of time specified by the user^\\*^. |\n| **Peak disk write ops** `(instance/disk/max_write_ops_count)` | The maximum number of write operations per second over a period of time specified by the user^\\*^. |\n\n^\\*^ The period must be one minute or longer.\n\n\u003cbr /\u003e\n\nVisualize disk performance on a chart\n\nYou can visualize your disk's performance by plotting any of\nthe metrics listed in the preceding section with Metrics Explorer.\nMetrics Explorer is part of Cloud Monitoring.\n\nExample: Visualize average latency for the disks attached to a VM\n\n\nTo visualize the average\nlatency for a VM's disks on a chart, follow these instructions.\nYou can follow the same procedure for the other\nPersistent Disk metrics.\n\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 `VM Instance` 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 **VM Instance**.\n 2. In the **Active metric categories** menu, select **Instance**.\n 3. In the **Active metrics** menu, select **Disk average latency**.\n 4. Click **Apply**.\n\n The fully qualified name for this metric is `compute.googleapis.com/instance/disk/average_io_latency`.\n4. Configure how the data is viewed. To display only the metrics for each disk attached to a specific instance, follow these steps:\n - In the **Filter** element, click **Add filter** , and then select **instance_name**. For the value, select a specific instance name.\n - In the **Aggregation** entry, set the first menu to **Mean** and the second menu to **device_name**.\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- Learn how to [optimize Persistent Disk performance](/compute/docs/disks/optimizing-pd-performance).\n- Learn more about [creating charts with Metric Explorer](/monitoring/charts/metrics-explorer).\n- Learn more about [Cloud Monitoring](/monitoring/docs/monitoring-overview).\n- Enable the [Monitoring API](/monitoring/api/enable-api).\n- View all the [available metrics for Compute Engine](/monitoring/api/metrics_gcp_c#gcp-compute)."]]