Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure AppInsights-挂起进程的监视器_Azure_Azure Application Insights - Fatal编程技术网

Azure AppInsights-挂起进程的监视器

Azure AppInsights-挂起进程的监视器,azure,azure-application-insights,Azure,Azure Application Insights,我们正在考虑为我们的非web应用程序实现AppInsights。我们要监视的一件事是进程可能被“挂起”超过N秒或分钟。我一直无法找到内置的东西来实现这一点。我所看到或想到的最接近的事情是为流程的开始和结束记录2个自定义事件,然后对自定义日志发出警报,该日志在N分钟后查询没有匹配“结束”事件的事件 是否有其他方法可以使用AppInsights监视挂起的进程,而我没有看到?感谢您的帮助。如果您选择使用application insights,以下建议仅供参考(但如果您有其他更好的解决方案,您可以忽略

我们正在考虑为我们的非web应用程序实现AppInsights。我们要监视的一件事是进程可能被“挂起”超过N秒或分钟。我一直无法找到内置的东西来实现这一点。我所看到或想到的最接近的事情是为流程的开始和结束记录2个自定义事件,然后对自定义日志发出警报,该日志在N分钟后查询没有匹配“结束”事件的事件


是否有其他方法可以使用AppInsights监视挂起的进程,而我没有看到?感谢您的帮助。

如果您选择使用application insights,以下建议仅供参考(但如果您有其他更好的解决方案,您可以忽略此问题):

因此,您可以利用心跳功能,详情如下:

    if this application runs more than several seconds, you can leverage heartbeat 
feature - it sends metric every N minutes/seconds (configurable) and the absence of such
 metric will indicate that application is no longer actively running. However, if 
Application Insights thread survives, then heartbeat will still be reported.    

    You can rely on presense/absense of the telemetry from this app in general as well as 
couple custom events as you outlined above - Azure Monitor allows to set an alert on 
analytics query, so you'll be able to craft a query that returns nothing in case of 
application issues and set an alert on 0 count returned by such a query.

如果您选择使用application insights,以下建议仅供参考(但如果您有其他更好的解决方案,您可以忽略此问题):

因此,您可以利用心跳功能,详情如下:

    if this application runs more than several seconds, you can leverage heartbeat 
feature - it sends metric every N minutes/seconds (configurable) and the absence of such
 metric will indicate that application is no longer actively running. However, if 
Application Insights thread survives, then heartbeat will still be reported.    

    You can rely on presense/absense of the telemetry from this app in general as well as 
couple custom events as you outlined above - Azure Monitor allows to set an alert on 
analytics query, so you'll be able to craft a query that returns nothing in case of 
application issues and set an alert on 0 count returned by such a query.

你应该让我们知道你的项目是什么。你只是想知道这个过程是否通过app insights挂起?若真是这样,我猜AppInsights在进程挂起时不会发送数据。我认为您可以在代码中添加更多可能挂起的事件跟踪,并使用AppInsightsRESTAPI定期查询这些事件。我还创建了一个应用程序内洞察主页来跟踪此问题。谢谢Ivan。正确,这是一个非网站应用程序,如果用户输入错误数据或作业重叠并导致资源约束等,它的流程和作业可能会经常挂起。我们将应用程序洞察视为一种集中分析作业和流程的方法,并且希望能够在进程或作业X未在N分钟内完成时发出警报。我意识到在应用程序洞察之外有很多方法可以做到这一点,但我希望通过他们的设置找到一种简单的方法。你可以在github上阅读,如果你不太清楚,请继续评论该线程。希望它能帮助你。你应该让我们知道你的项目是什么。你只是想知道这个过程是否通过app insights挂起?若真是这样,我猜AppInsights在进程挂起时不会发送数据。我认为您可以在代码中添加更多可能挂起的事件跟踪,并使用AppInsightsRESTAPI定期查询这些事件。我还创建了一个应用程序内洞察主页来跟踪此问题。谢谢Ivan。正确,这是一个非网站应用程序,如果用户输入错误数据或作业重叠并导致资源约束等,它的流程和作业可能会经常挂起。我们将应用程序洞察视为一种集中分析作业和流程的方法,并且希望能够在进程或作业X未在N分钟内完成时发出警报。我意识到在应用程序洞察之外有很多方法可以做到这一点,但我希望通过他们的设置找到一种简单的方法。你可以在github上阅读,如果你不太清楚,请继续评论该线程。希望它能帮助你。