Building an application with the dashboard

The Hystrix dashboard is integrated with Spring Cloud. The best approach when implementing the dashboard inside a system is to separate out an independent Spring Boot application with the dashboard. To include the Hystrix dashboard in your project, use the spring-cloud-starter-hystrix-netflix-dashboard starter or spring-cloud-starter-hystrix-dashboard for Spring Cloud Netflix versions older than 1.4.0:

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

The application's main class should be annotated with @EnableHystrixDashboard. After launching it, the Hystrix dashboard is available under the /hystrix context path: ...

Get Mastering Spring Cloud 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.