Hystrix 和 Turbine 不适用于 Spring boot 2 和 Spring cloud Finchley.M8

Hystrix and Turbine does not work with Spring boot 2 and Spring cloud Finchley.M8

我尝试使用 Spring boot 2 和最新版本的 Spring 云的 turbine + hystrix 仪表板,似乎存在一些问题并且 turbine 无法从响应式服务获取流。我刚刚将简单的微服务上传到 github

https://github.com/armdev/reactive-spring-cloud

像这样的异常:

com.netflix.turbine.monitor.instance.InstanceMonitor$MisconfiguredHostException: [{"timestamp":"2018-03-08T17:22:05.809+0000","status":404,"error":"Not Found","message":"No message available","path":"/hystrix.stream"}]
    at com.netflix.turbine.monitor.instance.InstanceMonitor.init(InstanceMonitor.java:318) ~[turbine-core-1.0.0.jar:na]
    at com.netflix.turbine.monitor.instance.InstanceMonitor.access0(InstanceMonitor.java:103) ~[turbine-core-1.0.0.jar:na]
    at com.netflix.turbine.monitor.instance.InstanceMonitor.call(InstanceMonitor.java:235) [turbine-core-1.0.0.jar:na]
    at com.netflix.turbine.monitor.instance.InstanceMonitor.call(InstanceMonitor.java:229) [turbine-core-1.0.0.jar:na]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_101]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_101]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_101]
    at java.lang.Thread.run(Thread.java:745) [na:1.8.0_101]

或管道损坏。

有人用 Spring webflux 尝试过完整的 spring 云堆栈吗?有什么建议吗?

幸运的是通过配置解决了问题,Spring boot 和 Spring cloud 没有任何错误。非常感谢 Josh Long! 在这里您可以找到带有配置的完整项目。 https://github.com/armdev/reactive-spring-cloud/blob/master/google/src/main/resources/application.properties

server.port=8082
spring.application.name=turbine
management.endpoint.health.enabled=true
management.endpoints.jmx.exposure.include=*
management.endpoints.web.exposure.include=*
management.endpoints.web.base-path=/actuator
management.endpoints.web.cors.allowed-origins=true
management.endpoint.health.show-details=always
eureka.client.serviceUrl.defaultZone=${EUREKA_URI:http://localhost:8761/eureka}
eureka.instance.lease-expiration-duration-in-seconds=5
eureka.instance.lease-renewal-interval-in-seconds=5
turbine.aggregator.cluster-config=default
turbine.app-config=google
turbine.cluster-name-expression= new String("default")
turbine.combine-host-port=true
turbine.instanceUrlSuffix.default: actuator/hystrix.stream

management.endpoints.web.exposure.include=* 怎么写在yaml