检测何时停止了天蓝色功能 [英] Detecting when an azure function is stopped

查看:125
本文介绍了检测何时停止了天蓝色功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简便的方法来监视天蓝色功能应用程序的运行位置?

Is there an easy way to monitor where an azure function application is running?

例如,您可以"ping"邮件吗?主机运行状况监视器,还是必须添加HTTP触发器以返回200或执行其他操作?

我有一个grafana仪表板,并且实现了自定义的运行状况检查"我的REST api上的端点(200 =正常,XXX =错误).我还要显示azure函数是否正在运行的状态.

For example, can you "ping" the Host Health Monitor or do you have to add a HTTP trigger to return a 200 or do something else? 

I have a grafana dashboard and as well as implementing custom "healthcheck" endpoints on my REST apis (200 = ok, XXX = bad). I would like to also show the status of whether an azure function is running or not.

推荐答案

我们有一些有关监视Azure函数的好信息,您可以在此处找到:

We have some good information on monitoring Azure functions which you can find here: 

https://docs.microsoft.com/zh-CN/azure/azure-functions/functions-monitoring

https://docs.microsoft.com/en-us/azure/azure-functions/functions-monitoring

如果您设置了对功能的监视,则可以设置警报规则,这些警报规则可以在功能发生故障或达到特定指标时发送电子邮件或SMS.我建议使用与这些监视解决方案相关的警报 我认为这将是最简单的解决方案.这样,您就可以使用平台中已经内置的内容.

If you setup monitoring of your function you then can setup Alert rules that can send out emails or SMS in the event your function has a failure or a specific metric is hit. Using an alert tied to these monitoring solutions is what I would suggest as it would be the simplest solution in my opinion. That way you can just use what is already built into the platform. 

如果您向我提供了有关您的功能应用程序正在执行的操作以及要监视的警报类型的更多信息,我可以尝试提供其他建议.

If you provide me some more information about what your function app is doing and the type of alerts you want to monitor I can try to provide additional suggestions. 


这篇关于检测何时停止了天蓝色功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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