springcloud5-断路器Dashboard监控仪表盘实战
7、断路器Dashboard监控仪表盘实战 简介:讲解断路器Dashboard基础使用和查看 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 8、断路器监控仪表参数讲解和模拟熔断 简介:讲解 断路器监控仪表盘参数和模拟熔断 1、sse server-send-event推送到前端 资料:https://github.com/Netflix/Hystrix/wiki/Dashboard


浙公网安备 33010602011771号