title: Unable to connect to Command Metric Stream for Hystrix Dashboard with Spring Cloud
body: <p>I have microservices project with Spring Cloud, the snippet from parent:</p>
  
  <pre><code>&lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.5.7.RELEASE&lt;/version&gt;
  &lt;/parent&gt;
  
  &lt;dependencyManagement&gt;
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
              &lt;artifactId&gt;spring-cloud-dependencies&lt;/artifactId&gt;
              &lt;version&gt;Dalston.SR3&lt;/version&gt;
              &lt;type&gt;pom&lt;/type&gt;
              &lt;scope&gt;import&lt;/scope&gt;
          &lt;/dependency&gt;
  </code></pre>
  
  <p>All services are running under Eureka server:</p>
  
  <p><a href="https://i.stack.imgur.com/r8kH4.png" rel="noreferrer"><img src="https://i.stack.imgur.com/r8kH4.png" alt="enter image description here"></a></p>
  
  <p>All services are running fine. I can call make appropriate calls with Postman and everything works fine. </p>
  
  <p>I have separate service which handles Hystrix dashboard, a snippet from <code>pom</code>:</p>
  
  <pre><code>&lt;dependencies&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;exclusions&gt;
              &lt;exclusion&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-starter-tomcat&lt;/artifactId&gt;
              &lt;/exclusion&gt;
          &lt;/exclusions&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-jetty&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-hystrix-dashboard&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Configuration main class:</p>
  
  <pre><code>@SpringBootApplication
  @EnableHystrixDashboard
  public class DashboardApp {
      public static void main(String[] args) {
          SpringApplication.run(DashboardApp.class, args);
      }
  }
  </code></pre>
  
  <p>and config <code>yaml</code> file:</p>
  
  <pre><code>spring:
    application:
      name: Dashboard
  
  server:
    port: 8000
  
  eureka:
    client:
      fetchRegistry: true
      registerWithEureka: false
      serviceUrl:
        defaultZone: http://localhost:8761/eureka
  </code></pre>
  
  <p>I have next dashboard looking:</p>
  
  <p><a href="https://i.stack.imgur.com/TvcZn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/TvcZn.png" alt="enter image description here"></a></p>
  
  <p>Full stack trace from the console is <a href="https://pastebin.com/GL1gHQH6" rel="noreferrer">here</a>. Following is some snippet:</p>
  
  <pre><code>2018-04-12 11:28:25.089 ERROR 15762 --- [qtp295055909-16] ashboardConfiguration$ProxyStreamServlet : Error proxying request: http://localhost:8082/hystrix.stream
  java.lang.RuntimeException: org.eclipse.jetty.io.EofException
      at org.springframework.cloud.netflix.hystrix.dashboard.HystrixDashboardConfiguration$ProxyStreamServlet.doGet(HystrixDashboardConfiguration.java:208)
  ....
  Caused by: org.eclipse.jetty.io.EofException: null
  ...
  Caused by: java.io.IOException: Broken pipe
  ...
  </code></pre>
  
  <p>Service itself is accessible with spring actuator:</p>
  
  <p><a href="https://i.stack.imgur.com/qAdvr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/qAdvr.png" alt="enter image description here"></a></p>
  
  <p>snippet from it's <code>pom</code>:</p>
  
  <pre><code>    &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-eureka&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-hystrix&lt;/artifactId&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
  </code></pre>
  
  <p>Config class looks:</p>
  
  <pre><code>@EnableHystrix
  @EnableEurekaClient
  @SpringBootApplication
  public class TableApp {
      public static void main(String[] args) {
          SpringApplication.run(TableApp.class, args);
      }
  }
  </code></pre>
  
  <p><strong>How to solve this issue?</strong></p>