|
28 | 28 | import org.springframework.boot.actuate.metrics.export.Exporter;
|
29 | 29 | import org.springframework.boot.actuate.metrics.export.MetricCopyExporter;
|
30 | 30 | import org.springframework.boot.actuate.metrics.repository.InMemoryMetricRepository;
|
31 |
| -import org.springframework.boot.actuate.metrics.repository.MetricRepository; |
32 | 31 | import org.springframework.boot.actuate.metrics.writer.DefaultCounterService;
|
33 | 32 | import org.springframework.boot.actuate.metrics.writer.DefaultGaugeService;
|
34 | 33 | import org.springframework.boot.actuate.metrics.writer.MetricWriter;
|
|
46 | 45 | * user-facing {@link GaugeService} and {@link CounterService} instances, and also back
|
47 | 46 | * end repositories to catch the data pumped into them.
|
48 | 47 | * <p>
|
49 |
| - * An {@link InMemoryMetricRepository} is always created unless another |
50 |
| - * {@link MetricRepository} is already provided by the user. In general, even if metric |
51 |
| - * data needs to be stored and analysed remotely, it is recommended to use an in-memory |
52 |
| - * repository to buffer metric updates locally. The values can be exported (e.g. on a |
53 |
| - * periodic basis) using an {@link Exporter}, most implementations of which have |
54 |
| - * optimizations for sending data to remote repositories. |
| 48 | + * In general, even if metric data needs to be stored and analysed remotely, it is |
| 49 | + * recommended to use in-memory storage to buffer metric updates locally as is done by the |
| 50 | + * default {@link InMemoryMetricRepository} (Java 7) or {@link CounterBuffers} and |
| 51 | + * {@link GaugeBuffers} (Java 8). The values can be exported (e.g. on a periodic basis) |
| 52 | + * using an {@link Exporter}, most implementations of which have optimizations for sending |
| 53 | + * data to remote repositories. |
55 | 54 | * <p>
|
56 | 55 | * If Spring Messaging is on the classpath and a {@link MessageChannel} called
|
57 | 56 | * "metricsChannel" is also available, all metric update events are published additionally
|
|
0 commit comments