Application Insights-仅获取客户端数据,而不获取服务器数据. [英] Application Insights - Getting only client side data, no server data.

查看:80
本文介绍了Application Insights-仅获取客户端数据,而不获取服务器数据.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows Server 2008上托管了一个ASP.Net MVC 4应用程序.我使用的是Microsoft Application Insights,它对于客户端度量标准(例如客户端处理时间,自定义事件,用户,会话,页面浏览量,但是,我无法获得任何服务器端指标,例如处理器时间"或可用内存".这些区域全部由标语覆盖,其中标有了解如何收集服务器请求数据"的内容.当我单击横幅时,它会显示一个带有说明的刀片,所有说明我都已经完成(快速入门).

I have an ASP.Net MVC 4 application hosted on Windows Server 2008. I'm using Microsoft Application Insights, and it's working perfectly for client side metrics such as Client Processing Time, Custom Events, Users, Sessions, Page Views, etc. However, I cannot get any server-side metrics such as Processor Time or Available Memory. The areas are all covered by a banner that says something to the effect of "Learn how to collect server request data". When I click on the banner, it shows a blade with instructions, all of which I've already completed (the quick start).

除了通过VS 2013(0.12.0-build17386)安装Application Insights SDK之外,我还在服务器上安装并配置了Application Insights状态监视器.我已经重新启动了IIS,甚至重新启动了服务器.尽管如此,我还是无法获得任何服务器指标.我已经阅读了疑难解答指南,并检查了其中提到的所有内容,例如确保应用程序池标识是性能监视器用户"组的一部分.

In addition to installing the Application Insights SDK through VS 2013 (0.12.0-build17386), I've also installed and configured the Application Insights Status Monitor on the server. I've restarted IIS, and even restarted the server. Despite all this, I cannot get any server metrics. I've read the troubleshooting guide, and I've checked everything mentioned therein such as making sure the app pool identity is part of the "Performance Monitor Users" group.

我觉得我必须对ApplicationInsights.config文件进行某些操作才能打开和/或定义所需的服务器指标,但是我根本找不到任何文档.

I feel as though there is something I have to do to the ApplicationInsights.config file in order to either turn on and / or define the server metrics I want, but I simply cannot find any documentation on this.

任何帮助或建议将不胜感激.谢谢!

Any help or suggestions would be greatly appreciated. Thanks!

推荐答案

好,知道了.在应用程序的根文件夹中有一个ApplicationInsights.config,这是我见过的唯一一个.在尤利娅·萨法罗娃(Yulia Safarova)的建议下,我在bin文件夹中发现了另一个.这个没有指定模块定义. (基本上是空的).我将其中一个的所有内容从根目录复制到bin文件夹中的一个,所有数据开始流动.

Ok, we've got it. There was an ApplicationInsights.config in the root folder of the application, and that was the only one I've ever looked at. At Yulia Safarova's suggestion, I discovered another one inside the bin folder. This one did NOT have the module definition specified. (It was basically empty). I copied all the contents of the one from the root into the one in the bin folder, and all the data started to flow.

这篇关于Application Insights-仅获取客户端数据,而不获取服务器数据.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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