指标图表示例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.

各个区域的应用程序可用性Application availability by region

查看各个区域的应用程序可用性,以确定哪些地理位置遇到问题。View your application's availability by region to identify which geographic locations are having problems. 此图表显示 Application Insights 可用性指标。This chart shows the Application Insights availability metric. 可以看到,受监视的应用程序没有遇到来自美国东部数据中心的可用性问题,但它正在经历来自美国西部和东亚的部分可用性问题。You can see that the monitored application has no problem with availability from the East US datacenter, but it is experiencing a partial availability problem from West US, and East Asia.

各个位置的平均可用性图表

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

首先需要启用网站的 Application Insights 可用性监视。You first need to turn on Application Insights availability monitoring for your website. 在此之后,选择 Application Insights 资源并选择可用性指标。After that, pick your Application Insights resource and select the Availability metric. 在“运行位置” 维度上应用拆分。Apply splitting on the Run location dimension.

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

存储帐户资源遇到了过多事务量。Your storage account resource is experiencing an excess volume of transactions. 可以使用事务指标来确定哪个 API 负责过多负载。You can use the transactions metric to identify which API is responsible for the excess load. 请注意,下面的图表在筛选和拆分中配置了相同维度(API 名称),以将视图缩小到只包含感兴趣的 API 调用:Notice that the following chart is configured with the same dimension (API name) in filtering and splitting to narrow down the view to only the API calls of the interest:

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