Implementing Hystrix Dashboard in our project

Hystrix Dashboard provides benefits to monitoring the set of metrics on a dashboard. It displays the health of each circuit-breaker in a very simple way. Let's include Hystrix Dashboard in your project by using the Starter with the org.springframework.cloudand group and the spring-cloud-starter-netflix-hystrix-dashboard artifact ID:

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

We have to add in the pom.xml file. But it is not enough to add Hystrix Dashboard in your project, we have to add one more annotation, @EnableHystrixDashboard, to your Spring Boot main class:

@SpringBootApplication @EnableEurekaClient ...

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