More clarification in metrics export docs

pull/4359/head
Dave Syer 9 years ago
parent 40f3bed54b
commit f3a2c1f4ac

@ -1076,13 +1076,17 @@ used by default if you are on Java 8 or if you are using Dropwizard metrics.
[[production-ready-metric-writers]] [[production-ready-metric-writers]]
=== Metric writers, exporters and aggregation === Metric writers, exporters and aggregation
Spring Boot provides a couple of implementations of a marker interface called `Exporter`
which can be used to copy metric readings from the in-memory buffers to a place where they Spring Boot provides a couple of implementations of a marker interface
can be analyzed and displayed. Indeed, if you provide a `@Bean` that implements the called `Exporter` which can be used to copy metric readings from the
`MetricWriter` interface and mark it `@ExportMetricWriter`, then it will automatically be in-memory buffers to a place where they can be analyzed and
hooked up to an `Exporter` and fed metric updates every 5 seconds (configured via displayed. Indeed, if you provide a `@Bean` that implements the
`spring.metrics.export.delay-millis`). In addition, any `MetricReader` that you define and `MetricWriter` interface (or `GaugeWriter` for simple use cases) and
mark as `@ExportMetricReader` will have its values exported by the default exporter. mark it `@ExportMetricWriter`, then it will automatically be hooked up
to an `Exporter` and fed metric updates every 5 seconds (configured
via `spring.metrics.export.delay-millis`). In addition, any
`MetricReader` that you define and mark as `@ExportMetricReader` will
have its values exported by the default exporter.
The default exporter is a `MetricCopyExporter` which tries to optimize itself by not The default exporter is a `MetricCopyExporter` which tries to optimize itself by not
copying values that haven't changed since it was last called (the optimization can be copying values that haven't changed since it was last called (the optimization can be

Loading…
Cancel
Save