监控磁盘性能速率可提供有用的信息,帮助您找到适当的磁盘大小和配置。借助 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-06-25。
[[["易于理解","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-06-25。"],[[["Compute Engine's Observability tab allows users to monitor disk performance, including average and peak IOPS and throughput rates."],["The Observability tab provides default graphs for Mean and Peak Throughput (MB/s) and Mean and Peak Operations (IOPS) to show disk performance over time."],["Users 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."],["The 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."],["Users can customize the monitoring dashboard by using the Explore Data function, and saving the results to a new or existing custom dashboard."]]],[]] -