【问题标题】:Hystrix's health endpoint not availableHystrix 的健康端点不可用
【发布时间】:2019-08-28 18:40:39
【问题描述】:

我正在尝试将断路器模式与 Springboot 和 Netflix 的 Hystrix 实现一起使用,并且我正在努力访问其运行状况端点。

文档中提到它应该在/hystrix.stream 中可用,但这并没有发生。另外,我在应用程序初始化时注意到以下错误:Endpoint ID 'hystrix.stream' contains invalid characters, please migrate to a valid format.

有人知道如何解决此问题或如何更改端点名称吗?

版本:

Springboot 2.1.4.RELEASE

Spring Cloud Greenwich.SR1

提前致谢!

【问题讨论】:

    标签: spring-boot spring-boot-actuator hystrix


    【解决方案1】:

    当服务器启动时,您应该能够在日志中看到类似的内容:

    INFO 14451 --- [ost-startStop-1] o.s.b.a.e.web.ServletEndpointRegistrar   : Registered '/actuator/hystrix.stream' to hystrix.stream-actuator-endpoint
    

    试试 /actuator/hystrix.stream

    【讨论】:

      【解决方案2】:

      对于 spring boot 2.1.x,hystrix 的默认端点 URL 是 /actuator/hystrix.stream

      【讨论】:

        【解决方案3】:

        尝试将pom.xml中的spring cloud版本改为Hoxton.RELEASE

            <properties>
                <java.version>11</java.version>
                <spring-cloud.version>Hoxton.RELEASE</spring-cloud.version>
            </properties>
        

        【讨论】:

          猜你喜欢
          • 2017-05-18
          • 2018-02-27
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多