Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/EmptyTag/141.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring cloud Hystrix涡轮机汇总数据_Spring Cloud_Hystrix_Turbine - Fatal编程技术网

Spring cloud Hystrix涡轮机汇总数据

Spring cloud Hystrix涡轮机汇总数据,spring-cloud,hystrix,turbine,Spring Cloud,Hystrix,Turbine,我正在使用turbine收集来自hystrix的数据。当我尝试使用hystrixlocalhost:23002/hystrix.strean获取数据时,一切都进展顺利。然而,当我尝试使用turbine获取数据时,它什么也没有显示。 这是我的配置 server: port: 23002 spring: application: name: hystrix-1 eureka: client: serviceUrl:

我正在使用turbine收集来自hystrix的数据。当我尝试使用hystrixlocalhost:23002/hystrix.strean获取数据时,一切都进展顺利。然而,当我尝试使用turbine获取数据时,它什么也没有显示。 这是我的配置

server:  
    port: 23002  
spring:  
    application:  
      name: hystrix-1  
eureka:  
    client:  
    serviceUrl:  
      defaultZone: http://t2.dcfservice.com:23001/eureka/  
  instance:  
    hostname: localhost  
    metadataMap:   
      cluster : MAIN  
我可以使用URL:localhost:23002/hystrix.stream获取数据
我的目标是通过URL localhost:23111/turbine.stream?cluster=MAIN获取数据

如果您发布的yml带有服务器中使用的精确缩进,则下面的缩进是错误的

turbine:  
  aggregator:  
    clusterConfig: MAIN       
  appConfig: hystrix-1  
  clusterNameExpression: metadata['cluster']  
appConfig和clusterNameExpression必须是turbine的子级,而不是聚合器

turbine:  
  aggregator:  
    clusterConfig: MAIN       
  appConfig: hystrix-1  
  clusterNameExpression: metadata['cluster']