Skip to content

Commit 2c5c539

Browse files
committed
Document automatic scheduling of metrics export
Closes gh-8040
1 parent d9a0a55 commit 2c5c539

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-boot-docs/src/main/asciidoc/production-ready-features.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,6 +1160,10 @@ metric updates every 5 seconds (configured via `spring.metrics.export.delay-mill
11601160
In addition, any `MetricReader` that you define and mark as `@ExportMetricReader` will
11611161
have its values exported by the default exporter.
11621162

1163+
NOTE: This feature is enabling scheduling in your application (`@EnableScheduling`) which
1164+
can be a problem if you run an integration tests as your own scheduled tasks will start.
1165+
You can disable this behaviour by setting `spring.metrics.export.enabled` to `false`.
1166+
11631167
The default exporter is a `MetricCopyExporter` which tries to optimize itself by not
11641168
copying values that haven't changed since it was last called (the optimization can be
11651169
switched off using a flag `spring.metrics.export.send-latest`). Note also that the

0 commit comments

Comments
 (0)