2
votes

It is possible to get hystrix metrics information in a similar way as done in the spring-boot 1.5?

In 1.5 metric endpoint I have something like this:

"gauge.servo.hystrix.hystrixcommand.[service-name].[method].errorcount": 0,     
"gauge.servo.hystrix.hystrixcommand.[service-name].[method].requestcount": 0,
"gauge.servo.hystrix.hystrixcommand.[service-name].[method].latencytotal_mean": 0,

But now with actuator/metric endpoint that uses Micrometer, I can't find any reference to the terms "hystrix", "netflix", etc.

I alredy configured my application with @EnableCircuitBreaker and hystrix:metrics:enabled: true.

There is some way tho get this information without using the hystrix.stream endpoint as I was able before? Or this should be working and am I doing something wrong?

1

1 Answers

4
votes

Following this tutorial you have to add the following bean to your application to register the Hystrix Metrics Binder:

@Configuration
public class MetricsConfig {

@Bean
HystrixMetricsBinder registerHystrixMetricsBinder() {
    return new HystrixMetricsBinder();
 }
}

As explainend in this issue, hystrix metrics should now show up like this:

hystrix.errors{event="short_circuited"}