Spring cloud Hystrix涡轮机汇总数据
我正在使用turbine收集来自hystrix的数据。当我尝试使用hystrixlocalhost:23002/hystrix.strean获取数据时,一切都进展顺利。然而,当我尝试使用turbine获取数据时,它什么也没有显示。 这是我的配置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:
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']