2

I am configuring hystrix turbine dashbord using ConfigPropertyBasedDiscovery . When I hit normal stream URL, it works fine http://localhost:8080/turbine.stream?cluster=EXAMPLE

enter image description here

But when I try to load this cluster stream in dashbord it show below error "unnable to connect command matrix" on browser and on console "EventSource's response has a MIME type ("text/plain") that is not "text/event-stream". Aborting the connection.". Please have look on screen shot.

enter image description here

Below is my config.properties

turbine.aggregator.clusterConfig=EXAMPLE,EXAMPLE1
turbine.instanceUrlSuffix=:9080/hystrix.stream

turbine.ConfigPropertyBasedDiscovery.EXAMPLE.instances=localhost
turbine.ConfigPropertyBasedDiscovery.EXAMPLE1.instances=139.126.244.170

InstanceDiscovery.impl=com.netflix.turbine.discovery.ConfigPropertyBasedDiscovery

My Application.java

    @EnableHystrixDashboard
    public class Application extends SpringBootApplication {

        private static Class<Application> applicationClass = Application.class;

        public static void main(String[] args) {
            SpringApplication.run(applicationClass, args);
            TurbineInit.init();
        }

        @Override
        protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
            super.configure(application);
            return application.sources(applicationClass);
        }

    }

And servlet registration for "/turbine.stream"

    @Configuration
    public class ServletRegistrationConfig {
        @Bean
        public ServletRegistrationBean registerTurbineBean(){
            return  new ServletRegistrationBean(new TurbineStreamServlet(), "/turbine.stream");
        }
    }

Please assist me in this. And let me know if I missed out in configuration.

Rakesh
  • 139
  • 7
  • This has been resolved, proxy.stream was not working because application's internal restrictions but now its working as proxy.stream is working. – Rakesh Oct 07 '16 at 08:54
  • Hi, it seems I run into similar issue. Could you please let me know how to make proxy stream work? – Sean Sun Mar 29 '17 at 23:55
  • exclude proxy stream from authentication if you have, or check if you have enabled any filter which holds the response. – Rakesh Mar 31 '17 at 03:28
  • @Rakesh - I followed all your suggestions still its giving the same version.. I am using Spring Boot version 2.0.4.RELEASE – Jeff Cook Sep 03 '18 at 16:00
  • @Sayali sorry for late reply.. but have you checked you stream URLs are not skipped from security filters? – Rakesh Nov 13 '18 at 10:51
  • Could you please guide me here: https://stackoverflow.com/questions/61431036/spring-boot-v2-2-6-release-and-turbine-unable-to-aggregate-the-metrix? – PAA Apr 25 '20 at 19:33

0 Answers0