Merge pull request #3131 from izeye/patch-16

* patch-16:
  Remove invalid parts of docs after refactoring
pull/3131/merge
Stephane Nicoll 10 years ago
commit 13ecd24cf3

@ -939,19 +939,18 @@ which can be used to copy metric readings from the in-memory buffers to a place
can be analyzed and displayed. Indeed, if you provide a `@Bean` that implements the can be analyzed and displayed. Indeed, if you provide a `@Bean` that implements the
`MetricWriter` interface and mark it `@ExportMetricWriter`, then it will automatically be `MetricWriter` interface and mark it `@ExportMetricWriter`, then it will automatically be
hooked up to an `Exporter` and fed metric updates every 5 seconds (configured via hooked up to an `Exporter` and fed metric updates every 5 seconds (configured via
`spring.metrics.export.delayMillis`) via a `@Scheduled` annotation in `spring.metrics.export.delay-millis`). In addition, any `MetricReader` that you define and
`MetricRepositoryAutoConfiguration`. In addition, any `MetricReader` that you define and
mark as `@ExportMetricReader` will have its values exported by the default exporter. 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
switched off using a flag `spring.metrics.export.sendLatest`). Note also that the switched off using a flag `spring.metrics.export.send-latest`). Note also that the
Dropwizard `MetricRegistry` has no support for timestamps, so the optimization is not Dropwizard `MetricRegistry` has no support for timestamps, so the optimization is not
available if you are using Dropwizard metrics (all metrics will be copied on every tick). available if you are using Dropwizard metrics (all metrics will be copied on every tick).
The default values for the export trigger (`delayMillis`, `includes`, `excludes`, The default values for the export trigger (`delay-millis`, `includes`, `excludes`
`ignoreTimestamps` and `sendLatest`) can be set as `spring.metrics.export.\*`. Individual and `send-latest`) can be set as `spring.metrics.export.\*`. Individual
values for specific `MetricWriters` can be set as values for specific `MetricWriters` can be set as
`spring.metrics.export.triggers.<name>.*` where `<name>` is a bean name (or pattern for `spring.metrics.export.triggers.<name>.*` where `<name>` is a bean name (or pattern for
matching bean names). matching bean names).

Loading…
Cancel
Save