HystrixDashboard监控Hystrix仪表盘(HystrixDashboard),就像汽车的仪表盘实时显示汽车的各种数据。HystrixDashboard主要用于监控Hystrix的实时运行状态。通过它,我们可以看到Hystrix的各种Indicator信息,从而快速发现系统中的问题并解决;要使用Hystrixdashboard功能,首先我们需要有一个HystrixDashboard项目,这个功能可以添加到原来的消费者应用中,让原来的消费者应用具有HystrixDashboard的功能,但是总的来说,思路是微服务架构是为了促进服务的拆分。HystrixDashboard也是一个服务,所以通常会为HystrixDashboard服务单独新建一个工程;搭建HystrixDashboard服务的步骤:第一步:创建一个普通的SpringBoot项目,比如创建一个名为springCloud-hystrix-dashboard的SpringBoot项目,建立基本结构和配置;第二步:为创建的SpringBoot项目添加相关依赖在pom.xml文件中添加相关依赖,如下:Outdated:org.springframework.cloudspring-cloud-starter-hystrix-仪表板<版本>1.4。5.发布新依赖:org.springframework.cloudspring-cloud-starter-netflix-hystrix-dashboardorg.springframework.cloudspring-cloud-starter-hystrix1.4.5.RELEASE新增:org.springframework.cloudspring-cloud-starter-netflix-hystrix2.需要有一个springboot的服务监控依赖:org.springframework.bootspring-boot-starter-actuator3.配置文件需要配置springboot监控端点访问权限:management.endpoints.web.exposure.include=*这个用来暴露端点。由于endpoints包含很多敏感信息,除了health和info支持直接访问,其他的默认是不能直接访问的,所以让我们让它可以访问,或者指定:management.endpoints.web.exposure.include=hystrix。stream4,访问入口http://localhost:8081/actuator/hystrix.stream注意:这里有个细节需要注意,要访问/hystrix.stream接口,必须先访问consumer项目中的其他接口,否则直接访问/hystrix.stream接口会输出一连串的ping:ping:...,先访问consumer中的任何其他接口,然后访问/hystrix.stream接口即可;Hystrixdashboard监控数据解读