I have a spring cloud app acting as a turbine server and Hystrix dashboard. It has a Eureka client and the dashboard comes up ok and can see an individual Hystrix stream but I don't get anything in the turbine stream.
This is the application.yml:
eureka:
client:
serviceUrl:
defaultZone: ${vcap.services.eureka-service.credentials.uri:http://10.12.2.99:8761}/eureka/
turbine:
aggregator:
clusterConfig: ITEMS-SERVICE
appConfig: items-service
If I look in the logs when the Turbine/dashboard app starts up it looks like it finds my Hystrix services ok:
2015-03-10 14:45:35.256 INFO 1383 --- [ Timer-0] o.s.c.n.turbine.EurekaInstanceDiscovery : Fetching instance list for apps: [items-service]
2015-03-10 14:45:35.257 INFO 1383 --- [ Timer-0] o.s.c.n.turbine.EurekaInstanceDiscovery : Fetching instances for app: items-service
2015-03-10 14:45:35.257 INFO 1383 --- [ Timer-0] o.s.c.n.turbine.EurekaInstanceDiscovery : Received instance list for app: items-service, size=2
2015-03-10 14:45:35.264 INFO 1383 --- [ Timer-0] c.n.t.discovery.InstanceObservable : Retrieved hosts from InstanceDiscovery: 2
2015-03-10 14:45:35.265 INFO 1383 --- [ Timer-0] c.n.t.discovery.InstanceObservable : Found hosts that have been previously terminated: 0
2015-03-10 14:45:35.265 INFO 1383 --- [ Timer-0] c.n.t.discovery.InstanceObservable : Hosts up:2, hosts down: 0
2015-03-10 14:45:35.270 INFO 1383 --- [ Timer-0] c.n.t.monitor.instance.InstanceMonitor : Url for host: http://nf-app1:8080/hystrix.stream ITEMS-SERVICE
2015-03-10 14:45:35.270 INFO 1383 --- [ Timer-0] c.n.t.handler.TurbineDataDispatcher :
Just added and starting handler tuple: ITEMS-SERVICE_agg_aggClusterEventHandler
2015-03-10 14:45:35.271 INFO 1383 --- [ Timer-0] c.n.turbine.data.AggDataFromCluster : Per handler dispacher started for: ITEMS-SERVICE_agg_aggClusterEventHandler
2015-03-10 14:45:35.273 INFO 1383 --- [ Timer-0] c.n.t.monitor.instance.InstanceMonitor : Url for host: http://nf-app2:8080/hystrix.stream ITEMS-SERVICE
If I hit the Turbine stream at
http://localhost:8080/turbine.stream?cluster=ITEMS-SERVICE
I get:
: ping
data: {"timestamp":1426018670641,"name":"meta","reportingHostsLast10Seconds":0,"type":"meta"}
: ping
data: {"timestamp":1426018673643,"name":"meta","reportingHostsLast10Seconds":0,"type":"meta"}
: ping
data: {"timestamp":1426018676645,"name":"meta","reportingHostsLast10Seconds":0,"type":"meta"}
and when I look in the Turbine/dashboard log I don't see any errors:
2015-03-10 14:48:33.804 INFO 1383 --- [nio-8080-exec-1] c.n.t.s.servlet.TurbineStreamServlet : FilterCriteria: []
2015-03-10 14:48:33.804 INFO 1383 --- [nio-8080-exec-1] c.n.t.s.servlet.TurbineStreamServlet : StatsType filters: []
2015-03-10 14:48:33.808 INFO 1383 --- [nio-8080-exec-1] c.n.t.s.TurbineStreamingConnection : Relevance config: []
2015-03-10 14:48:33.808 INFO 1383 --- [nio-8080-exec-1] c.n.t.s.TurbineStreamingConnection : Relevance metrics config: {}
2015-03-10 14:48:33.809 INFO 1383 --- [nio-8080-exec-1] c.n.t.monitor.cluster.ClusterMonitor : Registering event handler for cluster monitor: StreamingHandler_f1b7fc33-d0ed-4206-9976-fd4b2347bdd5
2015-03-10 14:48:33.809 INFO 1383 --- [nio-8080-exec-1] c.n.t.handler.TurbineDataDispatcher :
Just added and starting handler tuple: StreamingHandler_f1b7fc33-d0ed-4206-9976-fd4b2347bdd5
2015-03-10 14:48:33.809 INFO 1383 --- [nio-8080-exec-1] c.n.turbine.data.AggDataFromCluster : Per handler dispacher started for: StreamingHandler_f1b7fc33-d0ed-4206-9976-fd4b2347bdd5
2015-03-10 14:48:33.809 INFO 1383 --- [nio-8080-exec-1] c.n.t.monitor.cluster.ClusterMonitor : All event handlers for cluster monitor: [StaticListener_For_Aggregator, StreamingHandler_f1b7fc33-d0ed-4206-9976-fd4b2347bdd5]
2015-03-10 14:48:33.809 INFO 1383 --- [nio-8080-exec-1] c.n.t.monitor.cluster.ClusterMonitor : Starting up the cluster monitor for ITEMS-SERVICE_agg
2015-03-10 14:48:35.265 INFO 1383 --- [ Timer-0] o.s.c.n.turbine.EurekaInstanceDiscovery : Fetching instance list for apps: [items-service]
2015-03-10 14:48:35.266 INFO 1383 --- [ Timer-0] o.s.c.n.turbine.EurekaInstanceDiscovery : Fetching instances for app: items-service
2015-03-10 14:48:35.266 INFO 1383 --- [ Timer-0] o.s.c.n.turbine.EurekaInstanceDiscovery : Received instance list for app: items-service, size=2
2015-03-10 14:48:35.266 INFO 1383 --- [ Timer-0] c.n.t.discovery.InstanceObservable : Retrieved hosts from InstanceDiscovery: 2
2015-03-10 14:48:35.266 INFO 1383 --- [ Timer-0] c.n.t.discovery.InstanceObservable : Found hosts that have been previously terminated: 0
2015-03-10 14:48:35.267 INFO 1383 --- [ Timer-0] c.n.t.discovery.InstanceObservable : Hosts up:2, hosts down: 0
I get valid Hystrix data if I hit one of the item streams directly or through the dashboard (eg http://nf-app1:8080/hystrix.stream ).
It looks like the Turbine app is finding the two items-services via Eureka and their Hystrix stream endpoints are valid and work so I can't figure out why the Turbine stream is empty.