Azure Web 应用监控指标和应用服务计划

Azure Web Apps Monitoring Metrics and App Service Plan

我正在研究 Microsoft Azure 中的 Web 应用程序监控,我可以在门户中看到各种选项。我有一些问题,我将一一提出。问题长度可能有点长,请提前致歉:-)

  1. 进程资源管理器

在这里我们可以找到每个实例的进程详细信息,对于我的 Web 运行 App.In 横向扩展案例,我们还将看到多个实例。我想知道为什么每个实例有 2 个进程,每个进程的意义是什么。

2.Metrics 每个实例(应用程序)

在查看此报告时,我可以看到 2 个不同的选项卡(见图),但我无法将其映射到我的网络应用程序中的实例。

2.A) 如果我有多个部署槽/横向扩展实例,我会在报告中看到那么多选项卡,这是真的吗?

2.B) 有没有一种方法可以将它们映射到 Process Explorer 中的 Web App 实例

3.Metrics 每实例应用服务计划 同样,我们必须使用与应用程序中相同的不同指标。有人能帮我破译这些吗?

你们能帮我解决这些报告吗,因为它看起来很混乱,我无法将它与我的实例、与应用程序服务计划相关的部署槽进行映射。

再次为一个很长的问题道歉。 提前致谢, 玛雅克

好像很久没有人回答了。让我看看我是否可以更好地解释这一点。

您所说的 blade 可在应用服务 Web 应用程序的“诊断和解决问题”选项下访问。在过去的几个月里,这个功能发生了很多变化。在这里阅读更多相关信息:App Lens - Azure App Service

1.为什么我们看到每个实例有 2 个进程,每个进程的意义是什么。

In Azure App Service. For every web app there is another web app provisioned. This site is known as KUDU. So one w3wp.exe corresponds to the process hosting your code and the second w3wp.exe corresponds to the process hosting the KUDU. This process will have a SCM tag appended against it. You can read more about it here: Project Kudu - Github

2.Is 如果我有多个部署槽/横向扩展实例,我会在报告中看到那么多选项卡吗?有没有一种方法可以将它们映射到 Process Explorer

中的 Web App 实例

To answer the first part, YES, the tabs corresponds to the number of instances the app service plan is scaled out to. So if your web app is scaled out to 7 instances, then you will see 7 tabs in the report.

There is no straight approach to correlate the instance names to process explorer. There is an alternate way. I have a blog post using which you can connect to the KUDU site of a web app on a specific instance. See this: Connect to Kudu site of a specific instance

3。每个实例应用程序服务计划的指标再次,我们必须使用与应用程序相同的不同指标。有人能帮我破译这些吗

as the name says, Metrics per instance (App Service Plan) displays data for the entire VM, while Metrics per Instance (Apps) displays data for a specific web app or process (w3wp.exe). In Azure App Service, you can provision several web apps inside a VM. So, this view provides a holistic view of the overall usage of the VM. This will help you in determining whether you need to scale out or scale up.

我希望这能回答这个问题。