@Bean @ExportMetricWriter public RedisMetricRepository redisMetricWriter( RedisConnectionFactory connectionFactory) { return new RedisMetricRepository(connectionFactory, this.export.getRedis().getPrefix(), this.export.getRedis().getKey()); }
@Bean @ExportMetricWriter public MetricWriter metricWriter(MetricExportProperties export) { return new RedisMetricRepository(redisConnectionFactory, export.getRedis().getPrefix(), export.getRedis().getKey()); }
private MetricReader globalMetricsForAggregation() { return new RedisMetricRepository(this.redisConnectionFactory, this.export.getRedis().getAggregatePrefix(), this.export.getRedis().getKey()); }
@Bean public MetricRepository counterRepository() { return new RedisMetricRepository(redisConnectionFactory); }
private MetricReader globalMetricsForAggregation() { return new RedisMetricRepository(this.connectionFactory, this.export.getRedis().getAggregatePrefix(), this.export.getRedis().getKey()); }
@Bean @ExportMetricWriter public MetricRepository metricRepository() { return new RedisMetricRepository(redisConnectionFactory); }
@Before public void init() { assertThat(this.redisMetricRepository, instanceOf(RedisMetricRepository.class)); redisMetricRepository.reset("counter.simpleCounter"); }
@Bean @ConditionalOnMissingBean public MetricRepository metricRepository(RedisConnectionFactory redisConnectionFactory) { return new RedisMetricRepository(redisConnectionFactory); }