监控磁盘性能速率可提供有用的信息,帮助您找到适当的磁盘大小和配置。借助 Compute Engine,您可以使用Trusted Cloud 控制台中的可观测性标签页查看磁盘的平均 IOPS 和峰值 IOPS 及吞吐量。此标签页提供使用指标数据的预定义信息中心,因此您可以监控磁盘性能和配置。
默认情况下,可观测性标签页会显示以下 IOPS 和吞吐量图表:
- 吞吐量平均值(MB/秒):磁盘在一段时间内的平均吞吐量速率(以 MB/秒为单位)
- 操作次数平均值 (IOPS):磁盘在一段时间内的每秒 I/O 操作次数平均值 (IOPS)
- 吞吐量峰值 (MB/s):磁盘在一段时间内的吞吐量峰值速率(以每秒 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
-
After installing the Google Cloud CLI, sign in to the gcloud CLI with your federated identity and then initialize it by running the following command:
gcloud init
- Set a default region and zone.
在 Trusted Cloud 控制台中,前往磁盘页面。
点击磁盘的名称,以打开管理磁盘页面。
点击可观测性标签页,以显示磁盘的监控信息中心。
可选:通过选择以下选项之一,将一小时默认时间范围重置为您要监控的时间范围:
- 6 小时
- 1 天
- 1 周
- 1 个月
- 6 周
- 自定义日期或时间范围
- 访问磁盘可观测性标签页。
点击 query_stats 探索数据。
此操作会打开探索页面,您可以在其中创建自定义监控图表或表格。如需了解如何为特定指标创建图表,请参阅以图表形式显示单个指标类型。
创建自定义图表或表格后,您可以将结果保存到新的或现有的自定义信息中心。
如需详细了解自定义信息中心,请参阅查看和自定义 Trusted Cloud by S3NS 信息中心。
REST
如需在本地开发环境中使用本页面上的 REST API 示例,请使用您提供给 gcloud CLI 的凭据。
After installing the Google Cloud CLI, sign in to the gcloud CLI with your federated identity and then initialize it by running the following command:
gcloud init
如需了解详情,请参阅 Trusted Cloud 身份验证文档中的使用 REST 时进行身份验证。
访问单个磁盘的磁盘监控页面
您可以在 Trusted Cloud 控制台中查看磁盘监控页面。
自定义磁盘监控信息中心
请按照以下说明修改磁盘监控信息中心内显示的图表。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-08。
[[["易于理解","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"]],["最后更新时间 (UTC):2025-07-08。"],[[["\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)."]] -