Spring Boot + Eureka Server + Hystrix with Turbine: empty turbine.stream

前端 未结 2 989
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-05 07:52

I\'m trying to run Spring Boot (with Spring Cloud) + Eureka Server + Hystrix Dashboard and Turbine stream, but I run into a problem I couldn\'t find any solution so far. I u

相关标签:
2条回答
  • 2020-12-05 08:14

    In my case I had :7979/mock.stream as client for testing turbine app. The turbine checks time of event (timeOfEvent) so it will show only the current date time events.

    It can be turned off using

    turbine.InstanceMonitor.eventStream.skipLineLogic.enabled = false

    0 讨论(0)
  • 2020-12-05 08:17

    It works for me if I add some configuration for the cluster, e.g.

    turbine:
      appConfig: customers,stores
      clusterNameExpression: new String('default')
    

    Turbine has to know how to construct the "cluster" name (an aggregation key for sets of applications). The default is to use the appname, so if you don't set the clusterNameExpression you need to use a query param in the stream URL, e.g. /turbine.stream?cluster=CUSTOMERS (uppercased appname).

    0 讨论(0)
提交回复
热议问题