@Bean @ExportMetricReader @ConditionalOnMissingBean public BufferMetricReader actuatorMetricReader(CounterBuffers counters, GaugeBuffers gauges) { return new BufferMetricReader(counters, gauges); }
@Bean @ConditionalOnMissingBean public CounterBuffers counterBuffers() { return new CounterBuffers(); }
@Bean @ConditionalOnMissingBean(CounterService.class) public BufferCounterService counterService(CounterBuffers writer) { return new BufferCounterService(writer); }