chriscone
chriscone

Reputation: 11

Spring Cloud Zuul Monitor/CircuitBreaker All Routes via Hystrix

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

Answers (2)

phoenix7360
phoenix7360

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

spencergibb
spencergibb

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

Related Questions