Configuring Microsoft Application Insights to monitor a windows service

主宰稳场 提交于 2019-12-04 03:22:19

I'd also love to see this capability, but it seems from this MSDN page that it's not possible. 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.

Performance and exception monitoring with Application Insights

You can monitor performance in:

A .NET web service. You have to have administrative access to the server machine. You don’t have to alter the code of the web service.

A .NET service running as a web role on Microsoft Azure Cloud Services. You have to have access to the code. You run the Application Insights tool on your development machine, then rebuild and redeploy the service.

A Java web service. You download the agent to your server machine, update the configuration files, and restart your web service.

Here is an Application Insights Telemetry SDK for services:

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

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!