0504-Hystrix保护应用-Hystrix Dashboard的使用与常见问题总结

一、概述

  Hystrix的主要优势之一是它收集的每个HystrixCommand的度量集合。 Hystrix仪表板以高效的方式显示每个断路器的运行状况。

  以前查看通过http://localhost:8761/hystrix.stream,注意如果配置了相对地址需要加上http://localhost:8761/admin/hystrix.stream

1.1、增加管理平台

1》增加pom

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <!-- Edgware.SR3文档介绍使用这个,实际还没有,需引用下面的 -->
            <!-- <artifactId>spring-cloud-starter-hystrix-netflix-dashboard</artifactId> -->
            <artifactId>spring-cloud-starter-hystrix-dashboard</artifactId>
        </dependency>

2》增加启动类注解

@SpringBootApplication
@EnableHystrixDashboard
public class EurekaApplication {
    public static void main(String[] args) {
        SpringApplication.run(EurekaApplication.class, args);
    }
}

3》启动

查看地址:http://localhost:8030/hystrix

1.2、在管理平台增加hystrix.stream信息查看

在地址栏输入要查看地址:http://localhost:8761/admin/hystrix.stream

  

查看参数:

原文地址:https://www.cnblogs.com/bjlhx/p/8910515.html