Hystrix Dashboard

The Hystrix Dashboard will help us to organize the Turbine stream information. As we saw in the previous section, the Turbine server sends information via SSE. It is done using JSON objects.

The Hystrix stream provides a dashboard for us. Let's create our Hystrix Dashboard microservice. The application is a standard Spring Boot Application annotated with @EnableHystrixDashboard. Let's add the dependency to enable it:

<dependency>  <groupId>org.springframework.cloud</groupId>  <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId></dependency>

Good, now we can create the main class for our application. The main class should look like this:

package springfive.airline.hystrix.ui;import org.springframework.boot.SpringApplication ...

Get Spring 5.0 By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.