Polish updated metrics code
This commit is contained in:
@@ -27,9 +27,6 @@ import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.data.redis.connection.RedisConnectionFactory;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
*/
|
||||
@Configuration
|
||||
public class AggregateMetricsConfiguration {
|
||||
|
||||
@@ -45,8 +42,8 @@ public class AggregateMetricsConfiguration {
|
||||
}
|
||||
|
||||
private MetricReader globalMetricsForAggregation() {
|
||||
return new RedisMetricRepository(this.connectionFactory,
|
||||
this.export.getRedis().getAggregatePrefix(), this.export.getRedis().getKey());
|
||||
return new RedisMetricRepository(this.connectionFactory, this.export.getRedis()
|
||||
.getAggregatePrefix(), this.export.getRedis().getKey());
|
||||
}
|
||||
|
||||
private MetricReader aggregatesMetricReader() {
|
||||
|
||||
@@ -42,8 +42,8 @@ public class SampleRedisExportApplication {
|
||||
@ExportMetricWriter
|
||||
public RedisMetricRepository redisMetricWriter(
|
||||
RedisConnectionFactory connectionFactory) {
|
||||
return new RedisMetricRepository(connectionFactory, this.export.getRedis().getPrefix(),
|
||||
this.export.getRedis().getKey());
|
||||
return new RedisMetricRepository(connectionFactory, this.export.getRedis()
|
||||
.getPrefix(), this.export.getRedis().getKey());
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
Reference in New Issue
Block a user