Spring-boot-admin: Question about Hystrix UI

Created on 1 Mar 2018  路  8Comments  路  Source: codecentric/spring-boot-admin

Anyone has successfully using Hystrix UI?

According to this comment https://github.com/Netflix/zuul/issues/376#issuecomment-347356803 Zull 1.x does not support SSE.

SBA uses Zuul 1.3. When I hit Hystrix endpoint over SBA: http://localhost:8080/spring-boot-admin/api/applications/7216745c/hystrix.stream it does not work as expected. Actually I get some data every few minutes!

wontfix

Most helpful comment

I've published a plugin for Spring Boot Admin 2 that adds Hystrix Dashboard. To use it, simply drop the following Maven dependency in your Spring Boot Admin's pom.xml

<dependency>
    <groupId>nl.devillers</groupId>
    <artifactId>spring-boot-admin-hystrix-dashboard</artifactId>
    <version>1.0.2</version>
</dependency>

More info: https://github.com/MartinDevillers/spring-boot-admin-hystrix-dashboard

Hope it helps someone :-)

All 8 comments

It worked for my demo project. Did you check that the underlying endpoint is not just spilling out data every few minutes?

When I go directly to my service e.g: http://localhost:8181/management/hystrix.stream it works fine.

We are also using in SBA Hystrix dashboard in standalone configuration (spring-cloud-netflix-hystrix-dashboard) and in this case it works fine but communication goes through ProxyStreamServlet e.g. http://localhost:8080/proxy.stream?origin=http://localhost:8080/turbine.stream.

Looks like spring-cloud-netflix-hystrix-dashboard provides workaround for SSE?

/**
 * Proxy an EventStream request (data.stream via proxy.stream) since EventStream does
 * not yet support CORS (https://bugs.webkit.org/show_bug.cgi?id=61862) so that a UI
 * can request a stream from a different server.
 */
public static class ProxyStreamServlet extends HttpServlet {}

Yeah I guess we have to avoid the zuul for hystrix somehow.
I'm not sure I'll fix this in 1.5.x as 2.x doesn't uses zuul anymore - but 2.x currently doesn't include hystrix (yet)

Hmm the hystrix-dashboard has been moved to https://github.com/Netflix-Skunkworks/hystrix-dashboard and seems abandoned to me. I'm not keen on integrating this into 2.0.

Still, the hystrix metrics are useful. Showing just hystrix: up in spring boot admin doesn't really add value.

Yeah it's possible to write a custom visualization for the /actuator/hystrix.stream data not relying on the hystrix-dashboard. PRs are any time welcome.

I've published a plugin for Spring Boot Admin 2 that adds Hystrix Dashboard. To use it, simply drop the following Maven dependency in your Spring Boot Admin's pom.xml

<dependency>
    <groupId>nl.devillers</groupId>
    <artifactId>spring-boot-admin-hystrix-dashboard</artifactId>
    <version>1.0.2</version>
</dependency>

More info: https://github.com/MartinDevillers/spring-boot-admin-hystrix-dashboard

Hope it helps someone :-)

Was this page helpful?
0 / 5 - 0 ratings