spring-cloud-netflix icon indicating copy to clipboard operation
spring-cloud-netflix copied to clipboard

Turbine Dashboard issue

Open aivans opened this issue 11 years ago • 17 comments

Hi,

I have a weird problem.

I am trying to view the Turbine Stream for Zuul.

Hystrix stream works: Hystrix Stream: http://localhost:8765/hystrix.stream I can see storesRibbonCommand and customersRibbonCommand statistics.

For Turbine does not work: Hystrix Stream: http://localhost:8989/turbine.stream?cluster=ZUULSERVER I can see cust...StoresByLocationLink statistics.

Information in Eureka is: ZUULSERVERCLUJPC100ZUULSERVER192.168.0.101UPUNKNOWN8765

I remember this was working yesterday.

aivans avatar Jan 19 '15 20:01 aivans

A little more information would be useful (error messages, logs, configuration etc...). Turbine can only be used to view one service's instances: https://github.com/spring-cloud/spring-cloud-netflix/blob/master/docs/src/main/asciidoc/spring-cloud-netflix.adoc#turbine

spencergibb avatar Jan 19 '15 21:01 spencergibb

Out of curiosity, are there any thoughts on some sort of interface to read the data from multiple turbine feeds into a single interface? Realizing depending on the deployment size it could become possibly unmanageable.

ccit-spence avatar Jan 19 '15 21:01 ccit-spence

spring-cloud-netflix-hystrix-amqp and spring-cloud-netflix-turbine-amqp use rabbitmq rather than an http stream and you can see all services circuit breakers in one.

spencergibb avatar Jan 19 '15 21:01 spencergibb

Hi Spencer,

Eureka: Zuul appears like this: ZUULSERVERCLUJPC100ZUULSERVER192.168.0.101UPUNKNOWN87654431MyOwn

Hystrix stream in dashboard: hystrix-zuul

Turbine stream in dashboard: turbine-zuul

aivans avatar Jan 19 '15 21:01 aivans

I am pretty sure this was working, meaning seeing the exact info from Zuul single instance (hystrix url) or aggregated (Turbine url)

aivans avatar Jan 19 '15 21:01 aivans

is it possible that this commit broke it? https://github.com/spring-cloud/spring-cloud-netflix/commit/c31f700bae88b2c41d6b738ade56616cc878ec5b

(related to https://github.com/spring-cloud/spring-cloud-netflix/issues/160)

aivans avatar Jan 19 '15 21:01 aivans

What is your turbine configuration? ie:

turbine:
  aggregator:
    clusterConfig: CUSTOMERS
  appConfig: customers

spencergibb avatar Jan 19 '15 21:01 spencergibb

I don't think c31f700bae88b2c41d6b738ade56616cc878ec5b broke it, otherwise the reading the hystrix.stream directly wouldn't work.

spencergibb avatar Jan 19 '15 21:01 spencergibb

i have the default application.yml: https://github.com/spring-cloud-samples/turbine/blob/master/src/main/resources/application.yml

let my try configure it

aivans avatar Jan 19 '15 21:01 aivans

That sample uses:

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-turbine-amqp</artifactId>
</dependency>

Not the http based turbine from spring-cloud-netflix-turbine

spencergibb avatar Jan 19 '15 21:01 spencergibb

Hi Spencer,

I am a bit lost.

I have this config now: turbine: amqp: port: 8989 aggregator: clusterConfig: ZUULSERVER appConfig: zuulserver

But I still get the CUSTOMERS default stream.

aivans avatar Jan 19 '15 21:01 aivans

That config I showed you was wrong if you are using the spring-cloud-samples/turbine. It pulls from rabbitmq not the http streams. I'm sure you thought this worked yesterday, but it probably didn't.

spencergibb avatar Jan 19 '15 22:01 spencergibb

:) Either I was very tired, either it worked.

aivans avatar Jan 19 '15 22:01 aivans

Indeed, I checked RabbitMQ queues and the message only come from Customers app.

Is there a way to publish from Zuul also?

aivans avatar Jan 19 '15 22:01 aivans

yes, see https://github.com/spring-cloud-samples/customers-stores for an example. You add this starter:

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-netflix-hystrix-amqp</artifactId>
</dependency>

spencergibb avatar Jan 19 '15 22:01 spencergibb

had to add 2:

    <dependency>
     <groupId>org.springframework.cloud</groupId>
     <artifactId>spring-cloud-netflix-hystrix-amqp</artifactId>
    </dependency>
    <dependency>
     <groupId>org.springframework.cloud</groupId>
     <artifactId>spring-cloud-starter-bus-amqp</artifactId>         
    </dependency>

aivans avatar Jan 19 '15 23:01 aivans

Update for SpringTurbineStream with springboot 1.3.1 and spring cloud brixton add following depedency.

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-netflix-hystrix-stream</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-bus-amqp</artifactId>
</dependency>

dinkarthakur avatar Jan 10 '16 05:01 dinkarthakur