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 @EnableCircuitBreaker @EnableHystrixDashboard public class CustomerServiceApplication { public static void main(String[] args) { SpringApplication.run(CustomerServiceApplication.class...