【SpringCloud】SpringCloud 和 微服务(六)

Hystrix的一个小尾巴

安装Hystrix DashBoard ,并且查看各个命令和请求和状态。

Hystrix Dashboard主要用来实时监控Hystrix的各项指标信息。通过Hystrix Dashboard反馈的实时信息,可以帮助我们快速发现系统中存在的问题。

 

 

 

默认的集群监控: http://turbine-hostname:port/turbine.stream
指定的集群监控: http://turbine-hostname:port/turbine.stream?cluster=[clusterName]
单体应用的监控: http://hystrix-app:port/actuator/hystrix.stream
 

 

 

安装步骤:

1、添加依赖

2、添加注解

3、输入hystrix.stream ,监控项目的状态。

 

 

过程当中如果有问题可参照上篇博文       ---》   https://blog.csdn.net/qq_34093082/article/details/103176028

添加的依赖为:

      <dependency>
            <groupId>com.netflix.hystrix</groupId>
            <artifactId>hystrix-javanica</artifactId>
            <version>RELEASE</version>
        </dependency>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-netflix-hystrix-dashboard</artifactId>
        </dependency>

 

添加的注解是:

@EnableHystrixDashboard

 

然后在url中输入:

http://localhost:8811/hystrix.stream

 

也就是

 

 

然后点击monitor:

 

 

另外你也可以试试单个app ,它是怎么监控的。

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值