У меня возникла странная проблема при использовании spring-cloud-feign
в сочетании с HystrixCodaHaleMetricsPublisher
и Graphite
. Узлы метрик были созданы, но данные не поступали.
Моя конфигурация:
@Configuration
@RequiredArgsConstructor
@EnableConfigurationProperties(ApiGatewayProperties.class)
@EnableFeignClients
public class AccountSettingsClientConfig {
private final ApiGatewayProperties apiGatewayProperties;
@Bean
public RequestInterceptor oauth2FeignRequestInterceptor() {
return new OAuth2FeignRequestInterceptor(new DefaultOAuth2ClientContext(), resource());
}
@Bean
public okhttp3.OkHttpClient okHttpClient() {
return new OkHttpClient.Builder().hostnameVerifier((s, sslSession) -> true)
.build();
}
@Bean
public AccountSettingsClientFallbackFactory accountSettingsClientFallbackFactory() {
return new AccountSettingsClientFallbackFactory();
}
HystrixCodaHaleMetricsPublisher
? - person Indra Basak   schedule 18.09.2017HystrixPlugins.reset(); HystrixPlugins.getInstance().registerMetricsPublisher(new HystrixCodaHaleMetricsPublisher(this.metricRegistry));
- person Roman T   schedule 19.09.2017