简体   繁体   English

配置Microsoft Application Insights以监视Windows服务

[英]Configuring Microsoft Application Insights to monitor a windows service

Is it possible to configure Microsoft's Application Insights to monitor a Windows service? 是否可以配置Microsoft的Application Insights来监视Windows服务?

I have a VM running in Azure on which the web service is hosted. 我有一个在承载Web服务的Azure中运行的VM。 Which version of the monitoring agent to I need to install and what steps need to be undertaken in order to allow monitoring data do be seen in the dashboard? 我需要安装哪个版本的监视代理,以及需要执行哪些步骤才能在仪表板上看到监视数据?

I'd also love to see this capability, but it seems from this MSDN page that it's not possible. 我也很乐意看到此功能,但是从此MSDN页面看来,这是不可能的。 I hope they expand the service's capabilities later on as it would be great to see a product on the level of AppDynamics or New Relic from MS. 我希望他们以后能扩展服务的功能,因为很高兴看到MS的AppDynamics或New Relic级别的产品。

Performance and exception monitoring with Application Insights 使用Application Insights进行性能和异常监视

You can monitor performance in: 您可以通过以下方式监视性能:

A .NET web service. .NET Web服务。 You have to have administrative access to the server machine. 您必须具有对服务器计算机的管理访问权限。 You don't have to alter the code of the web service. 您不必更改Web服务的代码。

A .NET service running as a web role on Microsoft Azure Cloud Services. 在Microsoft Azure云服务上作为Web角色运行的.NET服务。 You have to have access to the code. 您必须有权访问代码。 You run the Application Insights tool on your development machine, then rebuild and redeploy the service. 您在开发计算机上运行Application Insights工具,然后重建并重新部署服务。

A Java web service. Java Web服务。 You download the agent to your server machine, update the configuration files, and restart your web service. 您将代理下载到服务器计算机,更新配置文件,然后重新启动Web服务。

Here is an Application Insights Telemetry SDK for services: 这是用于服务的Application Insights遥测SDK:

http://www.nuget.org/packages/Microsoft.ApplicationInsights.Telemetry.Services/0.7.1 http://www.nuget.org/packages/Microsoft.ApplicationInsights.Telemetry.Services/0.7.1

It can be manually configured. 可以手动配置。 Check this out - https://docs.microsoft.com/en-us/azure/application-insights/app-insights-windows-services 签出-https://docs.microsoft.com/zh-cn/azure/application-insights/app-insights-windows-services

Basically, - create a ASP.NET app on the portal and obtain InstrumentationKey - Install the nuget package "Microsoft.ApplicationInsights.WindowsServer" - Add the InstrumentationKey in config file or code. 基本上,-在门户上创建一个ASP.NET应用并获取InstrumentationKey-安装nuget包“ Microsoft.ApplicationInsights.WindowsServer”-在配置文件或代码中添加InstrumentationKey。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM