監控磁碟效能速率可提供實用資訊,協助您找出合適的磁碟大小和設定。Compute Engine 可讓您在Trusted Cloud 控制台中使用「可觀測性」分頁,查看磁碟的平均和尖峰 IOPS 與總處理量。這個分頁會使用指標資料提供預先定義的資訊主頁,方便您監控磁碟效能和設定。
根據預設,「可觀測性」分頁會顯示下列 IOPS 和輸送量圖表:
- 平均處理量 (MB/秒):磁碟在一段時間內的平均處理量速率 (以 MB/秒為單位)
- 平均作業數量 (IOPS):磁碟在一段時間內的平均每秒 I/O 作業數 (IOPS)
- 尖峰處理量 (MB/秒):磁碟在一段時間內的尖峰處理量速率,以每秒 MB 為單位
- 尖峰作業數量 (IOPS):磁碟在一段時間內每秒的尖峰 I/O 作業數量 (IOPS)
您可以使用預先定義的值 (一小時、六小時、一天、一週、一個月或六週),選取這個頁面圖表的時間範圍。您也可以為圖表資料指定自訂時間範圍。
事前準備
-
如果尚未設定驗證,請先完成設定。
「驗證」是指驗證身分的程序,確認您有權存取 Trusted Cloud by S3NS 服務和 API。如要從本機開發環境執行程式碼或範例,請選取下列任一選項,向 Compute Engine 進行驗證:
Select the tab for how you plan to use the samples on this page:
Console
When you use the Trusted Cloud console to access Trusted Cloud by S3NS services and APIs, you don't need to set up authentication.
gcloud
-
安裝 Google Cloud CLI,然後 使用同盟身分登入 gcloud CLI。 登入後,執行下列指令初始化 Google Cloud CLI:
gcloud init
- Set a default region and zone.
REST
如要在本機開發環境中使用本頁的 REST API 範例,請使用您提供給 gcloud CLI 的憑證。
安裝 Google Cloud CLI,然後 使用同盟身分登入 gcloud CLI。 登入後,執行下列指令初始化 Google Cloud CLI:
gcloud init
詳情請參閱 Trusted Cloud 驗證說明文件中的「Authenticate for using REST」。
存取單一磁碟的磁碟監控頁面
您可以在 Trusted Cloud 控制台中查看磁碟監控頁面。
前往 Trusted Cloud 控制台的「Disks」(磁碟) 頁面。
按一下磁碟名稱,開啟「管理磁碟」頁面。
按一下「可觀測性」分頁標籤,顯示磁碟的監控資訊主頁。
選用步驟:如要將預設的一小時時間範圍重設為您想監控的時間範圍,請選擇下列其中一個選項:
- 6 小時
- 1 天
- 1 週
- 1 個月
- 6 週
- 自訂日期或時間範圍
自訂磁碟監控資訊主頁
請按照下列操作說明,修改磁碟監控資訊主頁上顯示的圖表。
- 存取磁碟的「Observability」(觀測能力) 分頁標籤。
按一下「query_stats」query_stats 探索資料。
系統會開啟「探索」頁面,您可以在這裡建立自訂監控圖表或表格。如要瞭解如何為特定指標建立圖表,請參閱「為單一指標類型繪製圖表」。
建立自訂圖表或表格後,您可以將結果儲存至新的或現有的自訂資訊主頁。
如要進一步瞭解自訂資訊主頁,請參閱「查看及自訂 Trusted Cloud by S3NS 資訊主頁」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-08-18 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-18 (世界標準時間)。"],[[["\u003cp\u003eCompute Engine's Observability tab allows users to monitor disk performance, including average and peak IOPS and throughput rates.\u003c/p\u003e\n"],["\u003cp\u003eThe Observability tab provides default graphs for Mean and Peak Throughput (MB/s) and Mean and Peak Operations (IOPS) to show disk performance over time.\u003c/p\u003e\n"],["\u003cp\u003eUsers can view performance data for predefined timeframes like one hour, six hours, one day, one week, one month, or six weeks, as well as a custom time period.\u003c/p\u003e\n"],["\u003cp\u003eThe disk monitoring page can be accessed via the Google Cloud console by navigating to the Disks page, selecting a specific disk, and clicking the Observability tab.\u003c/p\u003e\n"],["\u003cp\u003eUsers can customize the monitoring dashboard by using the Explore Data function, and saving the results to a new or existing custom dashboard.\u003c/p\u003e\n"]]],[],null,["# Monitor disk IOPS and throughput rates\n\n*** ** * ** ***\n\nMonitoring disk performance rates provides useful information to help you find\nthe right size and configuration of your disks.\nCompute Engine lets you view the average and peak IOPS and throughput\nrates for your disks by using the **Observability** tab in the\nGoogle Cloud console. This tab provides a predefined dashboard using\n[metric data](/compute/docs/disks/review-storage-pool-metrics)\nso you can monitor your disk performance and configuration.\n\nThe **Observability** tab shows the following graphs for IOPS and\nthroughput by default:\n\n- Mean Throughput (MB/s): the average throughput rate, in MB per second, for a disk over a period of time\n- Mean Operations (IOPS): the average number of I/O operations per second (IOPS) for a disk over a period of time\n- Peak Throughput (MB/s): the peak throughput rates, in MB per second, for a disk over a period of time\n- Peak Operations (IOPS): the peak number of I/O operations per second (IOPS) for a disk over a period of time\n\nYou can select the time period for the graphs on this page, using predefined\nvalues of one hour, six hours, one day, one week, one month, or six weeks.\nYou can also specify a custom time period for the graph data.\n\n\nBefore you begin\n----------------\n\n- If you haven't already, set up [authentication](/compute/docs/authentication). Authentication verifies your identity for access to Google Cloud services and APIs. To run code or samples from a local development environment, you can authenticate to Compute Engine by selecting one of the following options:\n\n Select the tab for how you plan to use the samples on this page: \n\n ### Console\n\n\n When you use the Google Cloud console to access Google Cloud services and\n APIs, you don't need to set up authentication.\n\n ### gcloud\n\n 1.\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n After installation,\n [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command:\n\n ```bash\n gcloud init\n ```\n\n\n If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n | **Note:** If you installed the gcloud CLI previously, make sure you have the latest version by running `gcloud components update`.\n 2. [Set a default region and zone](/compute/docs/gcloud-compute#set_default_zone_and_region_in_your_local_client).\n\n ### REST\n\n\n To use the REST API samples on this page in a local development environment, you use the\n credentials you provide to the gcloud CLI.\n 1. [Install](/sdk/docs/install) the Google Cloud CLI. After installation, [initialize](/sdk/docs/initializing) the Google Cloud CLI by running the following command: \n\n ```bash\n gcloud init\n ```\n 2. If you're using an external identity provider (IdP), you must first [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n\n For more information, see\n [Authenticate for using REST](/docs/authentication/rest)\n in the Google Cloud authentication documentation.\n\nAccess the disk monitoring page for a single disk\n-------------------------------------------------\n\nYou can view the disk monitoring page in the Google Cloud console.\n\n1. In the Google Cloud console, go to the **Disks** page.\n\n [Go to Disks](https://console.cloud.google.com/compute/disks)\n2. Click the name of a disk to open the **Manage disk** page.\n\n3. Click the **Observability** tab to display the monitoring dashboard for the\n disk.\n\n4. Optional: Reset the one hour default timeframe to the timeframe you want\n to monitor, by choosing one of the following options:\n\n - 6 hours\n - 1 day\n - 1 week\n - 1 month\n - 6 weeks\n - Custom date or time range\n\nCustomize the disk monitoring dashboard\n---------------------------------------\n\nUse the following instructions to modify the graphs shown on the\ndisk monitoring dashboard.\n\n1. [Access the disk **Observability** tab](#access).\n2. Click query_stats\n **Explore data**.\n\n This opens an **Explore** page, where you can create a customized monitoring\n chart or table. For information about how to create a chart for\n a specific metric, see\n [Chart a single metric type](/monitoring/charts/metrics-explorer#find-me).\n3. After creating a custom graph or table, you can save the result to a new or\n existing custom dashboard.\n\n For more information about custom dashboards, see\n [View and customize Google Cloud dashboards](/monitoring/charts/predefined-dashboards)."]] -