Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
f3a2c1f4
Commit
f3a2c1f4
authored
Oct 31, 2015
by
Dave Syer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More clarification in metrics export docs
parent
40f3bed5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
production-ready-features.adoc
...oot-docs/src/main/asciidoc/production-ready-features.adoc
+11
-7
No files found.
spring-boot-docs/src/main/asciidoc/production-ready-features.adoc
View file @
f3a2c1f4
...
@@ -1076,13 +1076,17 @@ used by default if you are on Java 8 or if you are using Dropwizard metrics.
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment