1、加入依赖 <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-hystrix-dashboard</artifactId> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> 2、启动类增加注解 @EnableHystrixDashboard 3、配置文件增加endpoint management: endpoints: web: exposure: include: "*" 4、访问入口 http://localhost:8781/hystrix Hystrix Dashboard输入: http://localhost:8781/actuator/hystrix.stream 参考资料 默认开启监控配置 https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-security-actuator 配置文件类: spring-configuration-metadata.json
断路器Dashboard监控仪表盘实战
最新推荐文章于 2023-08-06 01:36:14 发布