Hystrix Metrics Stream

You can also enable the Hystrix Metrics Stream by adding a dependency on spring-boot-starter-actuator. Hystrix will expose the metrics stream by using /hystrix.stream as a management endpoint:

<dependency> 
   <groupId>org.springframework.boot</groupId> 
   <artifactId>spring-boot-starter-actuator</artifactId> 
</dependency> 

Also add the following configurations to the application property file (application.propeties):

management.endpoint.health.enabled=true 
management.endpoints.jmx.exposure.include=* 
management.endpoints.web.exposure.include=* 
management.endpoints.web.base-path=/actuator 
management.endpoints.web.cors.allowed-origins=true 
management.endpoint.health.show-details=always 

These configurations are required to expose ...

Get Mastering Spring Boot 2.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.