Hystrix.stream和management.context

时间:2015-01-28 20:27:54

标签: spring-cloud

设置

management.context-path = /admin

并使用

@EnableCircuitBreaker 

制作Hystrix端点/admin/hystrix.stream

使用Turbine将指标聚合为寻找

时,这就成了一个问题
 instanceserver:port/hystrix.stream 

通过Eureka发现实例时

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

涡轮机的完整配置:

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