简体   繁体   English

如何监控Java Heroku应用程序dyno的使用?

[英]How to monitor Java Heroku application dyno usage?

I would like to know if it is possible to know web dyno usage in heroku ? 我想知道是否有可能知道heroku中的 web dyno使用情况?

For example, I would like to know if my dyno is using 100% of its resources, or it is just idling, so I could add or remove more dynos in order to have optimal resource utilization. 例如,我想知道我的dyno是否正在使用其100%的资源,或者它只是空闲,所以我可以添加或删除更多的dynos以获得最佳的资源利用率。

Heroku command line client gives only information about number of dynos and uptime , without further details. Heroku命令行客户端仅提供有关dynos数量和正常运行时间的信息 ,无需进一步详细说明。 Something like dyno equivalent of cpu usage , requests per sec per dyno or average response time of actual requests would be helpful. 像dyno相当于cpu的使用每秒dyno的每秒请求或实际请求的平均响应时间都会有所帮助。

I know there are some addons that work with Ruby, but I'm interested in ways to monitor Java / Clojure application. 我知道有一些插件可以与Ruby一起使用,但我对监视Java / Clojure应用程序的方法很感兴趣。

Probably the best way to get this kind of information on Heroku is with the New Relic add-on. 可能在Heroku上获取此类信息的最佳方式是使用New Relic插件。 It does work with Java but I'm not sure there is any specific Java on Heroku + New Relic documentation yet. 它可以与Java一起使用,但我不确定Heroku + New Relic文档上是否有任何特定的Java。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM