Cloud Foundry应用程序状态或健康通知? [英] Cloud foundry app status or health notification?

查看:64
本文介绍了Cloud Foundry应用程序状态或健康通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当Cloud Foundry应用程序失败或无法访问时,是否可以获取一些通知?我的意思是注册到一些已部署的应用程序,并且如果应用程序的状态更改为失败或某些状况,我想收到通知。

Is there a way to get some notification when a Cloud Foundry application fails or is unreachable? I mean to register to some deployed app and if the status of the application is changed to failed or something, I want to receive a notification.

推荐答案

在Pivotal Cloud Foundry上,当应用程序崩溃时,将通过Firehose发出事件。

On Pivotal Cloud Foundry, when a app crashes, an event is emitted thru the firehose.

Pivotal提供的PCF Metrics磁贴可以部署到您的PCF基金会中。 PCF Metrics将跟踪基金会上运行的应用程序的所有事件,并且开发人员可以访问(通过Apps Manager)。我相信Metrics磁贴可跟踪长达两个星期的历史。我不知道PCF Metrics磁贴中的任何警报功能(我可能是错的,在这种情况下,请纠正我),它们会在应用程序崩溃时提示您。

PCF Metrics tile, available from Pivotal, can be deployed to your PCF foudnation. PCF Metrics will track all events for apps running on the foundation and are accessible to developers (thru Apps Manager). I believe Metrics tile tracks history for up to two weeks. I am not aware of any alerting capabilities in the PCF Metrics tile (I could be wrong, in which case, please correct me), that will prompt you when an app crashes.

其他方法是实现事件记录工具,例如Splunk,New Relic等。它们支持警报。您将必须构建那些。

Other approaches are to implement event logging tools like Splunk, New Relic etc. They support alerts. You will have to build those.

API监视工具(例如AppD,Apigee和New Relic)提供警报,并可以通知您对应用程序的响应时间已经降低(因为您的应用程序崩溃了)。这种方法涉及更多。您可能需要将代理添加到您的buildpack中,具体取决于您选择的工具。

API monitoring tools like AppD, Apigee, and New Relic provide alerting and can notify you went the response time to an app has degraded (as in your app has crashed). This approach is a little more involved. You may require to add an agent to your buildpack, depending on the tool you choose.

这篇关于Cloud Foundry应用程序状态或健康通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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