指标图表示例Metric chart examples

Azure 平台提供了一千多个指标,其中许多指标具有维度。The Azure platform offers over a thousand metrics, many of which have dimensions. 通过使用维度筛选器、应用拆分、控制图表类型和调整图表设置,可以创建功能强大的诊断视图和仪表板,以深入了解基础结构和应用程序的运行状况。By using dimension filters, applying splitting, controlling chart type, and adjusting chart settings you can create powerful diagnostic views and dashboards that provide insight into the health of your infrastructure and applications. 本文介绍了一些可以使用指标资源管理器生成的图表示例,并说明了配置每个图表的必要步骤。This article shows some examples of the charts that you can build using Metrics Explorer and explains the necessary steps to configure each of these charts.

想和全世界分享你出色的图表示例吗?Want to share your great charts examples with the world? 在 GitHub 上参与撰写此页面,并在此处分享你自己的图表示例!Contribute to this page on GitHub and share your own chart examples here!

按服务器实例划分的网站 CPU 利用率Website CPU utilization by server instances

此图表显示应用服务的 CPU 是否在可接受范围内,并按实例对其进行分解,以确定负载是否得到正确分发。This chart shows if CPU for an App Service was within the acceptable range and breaks it down by instance to determine whether the load was properly distributed. 可以从图表上看到,在上午 6 点之前,应用在单个服务器实例上运行,然后通过添加另一个实例进行纵向扩展。You can see from the chart that the app was running on a single server instance before 6 AM, and then scaled up by adding another instance.

按服务器实例划分的平均 CPU 百分比折线图

如何配置此图表?How to configure this chart?

选择应用服务资源,并找到“CPU 百分比” 指标。Select your App Service resource and find the CPU Percentage metric. 然后单击“应用拆分” ,并选择“实例” 维度。Then click on Apply splitting and select the Instance dimension.

按 API 名称划分的失败存储帐户事务量Volume of failed storage account transactions by API name

存储帐户资源遇到了过多失败的事务量。Your storage account resource is experiencing an excess volume of failed transactions. 可以使用事务指标来确定哪个 API 负责过多失败。You can use the transactions metric to identify which API is responsible for the excess failure. 请注意,以下图表在拆分时配置了相同的维度(API 名称),并按失败的响应类型进行筛选:Notice that the following chart is configured with the same dimension (API name) in splitting and filtered by failed response type:

API 事务条形图

如何配置此图表?How to configure this chart?

在指标选取器中,选择你的存储帐户和“事务”指标。In the metric picker, select your storage account and the Transactions metric. 将图表类型切换为“条形图”。Switch chart type to Bar chart. 单击“应用拆分”并选择“API 名称”维度。Click Apply splitting and select dimension API name. 然后单击“添加筛选器”,再次选择“API 名称”维度。Then click on the Add filter and pick the API name dimension once again. 在筛选器对话框中,选择要在图表上显示的 API。In the filter dialog, select the APIs that you want to plot on the chart.

后续步骤Next steps