Netflix / Hystrix

Hystrix is a latency and fault tolerance library designed to isolate points of access to remote systems, services and 3rd party libraries, stop cascading failure and enable resilience in complex distributed systems where failure is inevitable.
24.15k stars 4.71k forks source link

How to access hystrix stream for the service behind zuul proxy #1707

Open PrateekS09 opened 7 years ago

PrateekS09 commented 7 years ago

Hi,

I have zuul as gateway and oauth enabled services with hystrix circuit breaker. I have another project for hystrix dashboard which is not associated with zuul.

When i try to access serviceA which is behind zuul and also oauth secured as hystrix.stream, i am getting below mentioned exception.

Unable to connect to Command Metric Stream.

Zuul configuration

zuul: ignoredServices: '*' host: connect-timeout-millis: 20000 socket-timeout-millis: 20000

routes: auth-service: path: /uaa/** url: http://localhost:5000 stripPrefix: false sensitiveHeaders:

serviceA:
    path: /aContext/**
    serviceId: serviceA
    stripPrefix: false
    sensitiveHeaders:

serviceB:
    path: /bContext/**
    serviceId: serviceB
    stripPrefix: false
    sensitiveHeaders:

I am using http://localhost:4000/aContext/hystrix.stream to create stream for serviceA 4000 is zuul proxy port.


ServiceA configuration server: context-path: /aContext port: 6000

security: basic: enabled: false oauth2: resource: user-info-uri: http://localhost:5000/uaa/principal client: access-token-uri: http://localhost:5000/uaa/oauth/token grant-type: client_credentials client-id: cp-demo-client client-secret: cp-secret scope: api.read

eureka: instance: prefer-ip-address: true client: registerWithEureka: true fetchRegistry: true serviceUrl: defaultZone: http://localhost:8761/eureka/ healthcheck: enabled: true lease: duration: 5

PrateekS09 commented 7 years ago

Sorry not aware of the formatting on Git