springboot2.0下hystrix dashboard Unable to connect to Command Metric Stream解决办法

springboot2.0下hystrix dashboard Unable to connect to Command Metric Stream解决办法

检查hystrix应用的配置:

management:
  endpoints:
    web:
      exposure:

        include: hystrix.stream

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-netflix-eureka-client</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-hystrix</artifactId>

        </dependency>

hystrix-dash应用里面:注意地址为/actuator/hystrix.stream

成功标识:

Fetching instance list for apps: [hystrix, customer]
[2m2018-05-14 23:30:36.379[0;39m [32m INFO[0;39m [35m10622[0;39m [2m---[0;39m [2m[        Timer-0][0;39m [36mo.s.c.n.turbine.EurekaInstanceDiscovery [0;39m [2m:[0;39m Fetching instances for app: hystrix
[2m2018-05-14 23:30:36.379[0;39m [32m INFO[0;39m [35m10622[0;39m [2m---[0;39m [2m[        Timer-0][0;39m [36mo.s.c.n.turbine.EurekaInstanceDiscovery [0;39m [2m:[0;39m Received instance list for app: hystrix, size=1
[2m2018-05-14 23:30:36.379[0;39m [32m INFO[0;39m [35m10622[0;39m [2m---[0;39m [2m[        Timer-0][0;39m [36mo.s.c.n.turbine.EurekaInstanceDiscovery [0;39m [2m:[0;39m Fetching instances for app: customer
[2m2018-05-14 23:30:36.379[0;39m [32m INFO[0;39m [35m10622[0;39m [2m---[0;39m [2m[        Timer-0][0;39m [36mo.s.c.n.turbine.EurekaInstanceDiscovery [0;39m [2m:[0;39m Received instance list for app: customer, size=1
[2m2018-05-14 23:30:36.379[0;39m [32m INFO[0;39m [35m10622[0;39m [2m---[0;39m [2m[        Timer-0][0;39m [36mc.n.t.discovery.InstanceObservable      [0;39m [2m:[0;39m Retrieved hosts from InstanceDiscovery: 2
[2m2018-05-14 23:30:36.379[0;39m [32m INFO[0;39m [35m10622[0;39m [2m---[0;39m [2m[        Timer-0][0;39m [36mc.n.t.discovery.InstanceObservable      [0;39m [2m:[0;39m Found hosts that have been previously terminated: 0

具体引用文章参考:https://www.cnblogs.com/chenweida/p/9025589.html

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值