目录

pom.xml添加依赖

启动类添加@EnableHystrixDashboard注解

 浏览器访问


 

pom.xml添加依赖

<dependency>
	<groupId>org.springframework.boot</groupId>
	<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>

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

启动类添加@EnableHystrixDashboard注解

在主程序启动类中加入@EnableHystrixDashboard注解,开启hystrixDashboard:

@SpringBootApplication
@EnableDiscoveryClient
@EnableHystrix
@EnableHystrixDashboard
public class ServiceRibbonApplication {
..//代码省略

}

 浏览器访问

打开浏览器:访问http://server:port/hystrix,界面如下

Hystrix Dashboard (断路器:Hystrix 仪表盘)

 

 

输入以下红色区域内容:

Hystrix Dashboard (断路器:Hystrix 仪表盘)

点击monitor stream,进入下一个界面,访问:http://localhost:8764/hi?name=forezp

此时会出现监控界面:

Hystrix Dashboard (断路器:Hystrix 仪表盘) 

相关文章:

  • 2021-09-09
  • 2021-04-11
  • 2021-11-16
  • 2021-09-19
  • 2021-10-28
  • 2021-12-17
  • 2021-06-02
  • 2021-05-31
猜你喜欢
  • 2022-12-23
  • 2021-09-08
  • 2022-01-04
  • 2021-05-15
  • 2021-11-30
  • 2021-11-26
  • 2021-10-28
相关资源
相似解决方案