Hystrix 仪表板:如何使用

Hystrix Dashboard: How to use

我有一个使用 Jersey 的本地网络服务,路径类似于

http://localhost:5000/search?...

然后我按照本教程 https://github.com/Netflix/Hystrix/wiki/Dashboard

将 Hystrix 仪表板安装到我的 Tomcat

我在突出显示的文本框中使用什么 URL?我试过 localhost:5000/hystrix.stream,但没有用(我的本地服务是 运行)。

原来是我没有注册servlet

我使用 dropwizard,所以只需添加以下代码就可以了。

environment.getApplicationContext().addServlet("com.netflix.hystrix.contrib.metrics.eventstream.HystrixMetricsStreamServlet", "/hystrix.stream");