使用Application Insights检测Windows服务 [英] Instrumenting windows service with Application Insights

查看:65
本文介绍了使用Application Insights检测Windows服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用Application Insights检测在本地运行的Windows服务?不必像Web应用程序一样自动收集应用程序的指标,将自定义事件推送到Azure就足够了.

Is it possible to instrument a windows service running on premise with Application Insights? It's not necessary to have it automatically collecting metrics of the application like it does with Web applications, pushing custom events to Azure would suffice.

推荐答案

我将在此方面使文档更加清晰.如果可以使用任何核心SDK进行构建,则可以执行任何操作.因此,任何类型的.NET,Java,PHP,OSX,iOS,Android等.如果您想要其他用于记录Web请求,崩溃等信息的模块,则您的限制会更多一些.

I'll make the docs a bit more clear on this. You can instrument anything if there's a core SDK that will build with it. So any kind of .NET, Java, PHP, OSX, iOS, Android, .... If you want additional modules that log web requests, crashes, etc, you're a little bit more restricted.

对于本地Windows服务,请遵循此处看到的内容: https://docs.microsoft.com/zh-CN/azure/application-insights/app-insights-windows-desktop

For Windows Services on premises, follow what you see here: https://docs.microsoft.com/en-us/azure/application-insights/app-insights-windows-desktop

这篇关于使用Application Insights检测Windows服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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