Java Spring Cloud Zuul断路器所有线路通过涡轮气流而非涡轮AMQP

Java Spring Cloud Zuul断路器所有线路通过涡轮气流而非涡轮AMQP,java,spring,spring-boot,spring-cloud,turbine,Java,Spring,Spring Boot,Spring Cloud,Turbine,我正在使用springboot 1.3.1和SpringCloudlBrixtom.M4,而在使用springboot 1.3.1时,我发现TurbineAMQP项目不再可用,而我们现在有了SpringTurbineStream项目。 我想通过rabbitmq或kafka使用SpringTurbine,并想监控Zuul中注册的所有路由的hystrix流,我可以看到Zuul的hystrix.stream,也可以在hystrix仪表板中看到,但不确定如何使用spring turbine流。 在网上我

我正在使用springboot 1.3.1和SpringCloudlBrixtom.M4,而在使用springboot 1.3.1时,我发现TurbineAMQP项目不再可用,而我们现在有了SpringTurbineStream项目。 我想通过rabbitmq或kafka使用SpringTurbine,并想监控Zuul中注册的所有路由的hystrix流,我可以看到Zuul的hystrix.stream,也可以在hystrix仪表板中看到,但不确定如何使用spring turbine流。 在网上我找到了使用Turbine AMQP的代码和文档

我有zuul服务器运行的广告与依赖

 <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-config</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-eureka</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-zuul</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
我还拥有springTurbinestream项目作为

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-turbine-stream</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>
当我运行应用程序并转到时,我会看到流,但如果我转到它,就会出错


我做错了什么?

您的客户端应用程序(在端口9003上)不应该有
/turbine.stream
。它应该向rabbit发送带有hystrix度量的消息(例如)。要做到这一点,您需要添加
spring cloud netflix hystrix stream
spring cloud starter stream rabbit
(就像您在服务器上为
*-turbine-*
依赖项所做的那样)。

请提供拒绝投票的原因:(我没有投反对票,但我没有看到一个编程问题。我可能错了,但我也认为它有点宽泛。好吧,这很公平,但如果你知道答案,请发帖说我不知道你在说什么。你到底不明白它的工作方式是什么?重新格式化问题,以适合是站点,即某种代码。如果不能,请删除该问题并自行研究,如果有任何特定的编程问题,请返回。出于好奇,spring cloud starter bus amqp和spring cloud starter stream rabbitspring cloud starter hystrix stream之间的区别是什么ring cloud starter turbine stream如果我使用spring cloud starter turbine stream,那么在向eureka注册时,我看到两个实例,一个在启动时。我猜这是因为RxNetty服务器。该实例始终处于启动状态,turbine stream project.Updated也会如此。对于依赖项中的输入错误,我深表歉意e(hystrix stream没有入门软件,只有库)。在客户端应用程序中,您不需要(也不应该有)任何形式的turbine(流、amqp、香草等)。
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-turbine-stream</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-stream-rabbit</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>
@SpringBootApplication
@EnableTurbineStream
@EnableDiscoveryClient
public class WiziqTurbineApplication {

    public static void main(String[] args) {
        SpringApplication.run(WiziqTurbineApplication.class, args);
    }
}