Reputation: 11
I am using Spring Cloud and @EnableZuulProxy Is it possible to monitor all routes configured in application.yml using hystrix via /hystrix.stream? In the example below I would like to have a simple way to monitor all request made to the down stream product service. I understand that I can do this on the product service itself, but is it possible to monitor Zuul request. This would be useful for any down stream services that are not owned (third party) and cannot be annotated with the @HystrixCommand.
zuul:
routes:
item:
serviceId: product
path: /product/**
Upvotes: 1
Views: 3764
Reputation: 2907
I had the same issue and changing @EnableCircuitBreaker
to @EnableHystrix
fixed the problem.
With @EnableHystrix
I can see all the routed calls on the Hystrix dashboard.
Update
See comment below, this is indeed not the fix.
Upvotes: 0
Reputation: 25177
The simple answer is yes. Add spring-cloud-starter-hystrix
and add @EnableCircuitBreaker
to your main class. That will enable /hystrix.stream
. Zuul uses hystrix when forwarding to other services.
Upvotes: 2