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 the Hystrix Metrics Stream in Spring Boot 2.0.
Let's access the /hystrix.stream
endpoint on the browser to see the Hystrix Metrics Stream. The http://localhost:6161/actuator/hystrix.stream
URI represents...