Application Insights监视Prem Server上的内容 [英] Application Insights monitor for on prem servers

查看:58
本文介绍了Application Insights监视Prem Server上的内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在我们的托管多个应用程序的Prem服务器之一中安装应用程序洞察力状态监视器.配置后,我发现它为应用程序添加了一些程序集和配置更改.有没有办法我可以将它们排除在外 将其添加到应用程序中,并将其添加到一个公共位置并引用它.另外,除了可以更改网络配置之外,我还可以将必填字段添加到  IIS applicationhost config?

解决方案

Hello
Sanjay3290,Application Insights与每个Web应用程序紧密相关.一些web.config更改包括添加HTTPModule,该模块将处理与门户网站的通信.如果将其移至应用程序主机,则开发中的所有Web应用程序 无论您是否愿意,都将使用HTTPModule.

每个Web应用程序都将向门户网站中的其他资源报告.因此,通过将配置的这一部分移到影响所有Web应用程序的区域,意味着每个应用程序都将报告 到门户中的相同资源.

即使您将所有Application Insights DLL移至GAC并从每个项目中将其删除,下次Microsoft也是如此更新SDK,他们可能会添加不包含的其他程序集 原始部署程序包的一部分,这可能会让您头疼.

此外,Application Insights依赖于特定的Framework版本,如果您通过移动与Application相关的所有内容来分离这两个版本,控制时在项目之外的见解 Web应用程序中的目标框架,您可能只能在运行时发现问题,而不能在编译过程中发现问题.

您是否有任何理由要将Application Insights组件与Web应用程序分离? >

NuGet程序包是管理不同组件和依赖项的好方法,因此您想利用它来隔离您的业务逻辑,但是在项目解决方案中,您可以简单地转储所有内容 需要并执行.




I tried installing application insights status monitor in one of our on prem server which is hosting multiple applications. After configuring i found it added few assemblies and config changes to the application. Is there a way i can exclude them from adding it to the application and adding it in a common location and reference it. Also instead of making the web config change, can i add the required fields to  IIS applicationhost config ?

解决方案

Hello
Sanjay3290, Application Insights is tightly couple to each web app. Some of the web.config changes include adding an HTTPModule that will handle the communication with the portal. If you move this to the application host, then all your web apps in your development will be using the HTTPModule regardless of whether you want to or not.

Each Web app is going to be reporting to a different resource in the portal. So by moving that part of the configuration to an area that affects all the web apps means that each app will be reporting to the same resource in the portal.

Even if you moved all the Application Insights DLLs to the GAC and removed them from each project, the next time Microsoft updates the SDK, they may be adding additional assemblies that are not part of your original deployment package, and this could give you more headaches.

Also, Application Insights is dependent on specific Framework versions, and if you decouple these two by moving everything related to Application Insights outside your project while controlling the target framework in the web app, you may discover issues only during runtime as oppose of during compilation.

Is there are any reason you want to decouple Application Insights components from your web app?

NuGet package is a good way to manage different components and dependencies, so you want to leverage this to isolate your business logic, but in the project solution you can simply dump everything needed and execute.




这篇关于Application Insights监视Prem Server上的内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆