diff --git a/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.java b/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.java index 2fd1b947..913b54c9 100644 --- a/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.java +++ b/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/hystrix/HystrixCircuitBreakerConfiguration.java @@ -86,6 +86,7 @@ public class HystrixCircuitBreakerConfiguration { } @Configuration + @ConditionalOnProperty(value = "hystrix.metrics.enabled", matchIfMissing = true) @ConditionalOnClass({ HystrixMetricsPoller.class, GaugeService.class }) protected static class HystrixMetricsPollerConfiguration implements SmartLifecycle {