Hystrix.stream and management.context

[亡魂溺海] 提交于 2019-12-25 07:00:26

问题


Setting

management.context-path = /admin

and using

@EnableCircuitBreaker 

makes Hystrix endpoint /admin/hystrix.stream

This becomes an issue when using Turbine to aggregate metrics as its looking for

 instanceserver:port/hystrix.stream 

when discovering instances via Eureka

Any suggestions?


回答1:


Full config for turbine:

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


来源:https://stackoverflow.com/questions/28201779/hystrix-stream-and-management-context

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!