From a6b223c1d8e0d656109ffdb085f7bba6f68a9567 Mon Sep 17 00:00:00 2001 From: "Michael J. Simons" Date: Sat, 16 Sep 2017 21:20:48 +0200 Subject: [PATCH 1/2] Fix names of metrics properties See gh-10316 --- .../src/main/asciidoc/production-ready-features.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index 9d00851486a..6358de63e4b 100644 --- a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -876,12 +876,12 @@ its https://micrometer.io/docs[reference documentation]. [[production-ready-metrics-spring-mvc]] === Spring MVC metrics Auto-configuration will enable the instrumentation of requests handled by Spring MVC. -When `metrics.web.server.auto-time-requests` is `true`, this instrumentation will occur +When `spring.metrics.web.server.auto-time-requests` is `true`, this instrumentation will occur for all requests. Alternatively, when set to `false`, instrumentation can be enabled by adding `@Timed` to a request-handling method. Metrics will, by default, be generated with the name `http.server.requests`. The name -can be customized using the `metrics.web.server.requests-metrics-name` property. +can be customized using the `spring.metrics.web.server.requests-metrics-name` property. @@ -904,7 +904,7 @@ controllers. A helper class, `RouterFunctionMetrics`, is also provided that can used to instrument applications using WebFlux's funtional programming model. Metrics will, by default, be generated with the name `http.server.requests`. The name -can be customized using the `metrics.web.server.requests-metrics-name` property. +can be customized using the `spring.metrics.web.server.requests-metrics-name` property. @@ -939,7 +939,7 @@ instrumentation of its requests. `MetricsRestTemplateCustomizer` can be used to customize your own `RestTemplate` instances. Metrics will, by default, be generated with the name `http.client.requests`. The name -can be customized using the `metrics.web.client.requests-metrics-name` property. +can be customized using the `spring.metrics.web.client.requests-metrics-name` property. From a8e90ad72c3f911b2100681eca29737951ab2d47 Mon Sep 17 00:00:00 2001 From: Stephane Nicoll Date: Sun, 17 Sep 2017 10:14:51 +0200 Subject: [PATCH 2/2] Polish "Fix names of metrics properties" Closes gh-10316 --- .../src/main/asciidoc/production-ready-features.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc index 6358de63e4b..0b99fd0a042 100644 --- a/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc +++ b/spring-boot-docs/src/main/asciidoc/production-ready-features.adoc @@ -876,8 +876,8 @@ its https://micrometer.io/docs[reference documentation]. [[production-ready-metrics-spring-mvc]] === Spring MVC metrics Auto-configuration will enable the instrumentation of requests handled by Spring MVC. -When `spring.metrics.web.server.auto-time-requests` is `true`, this instrumentation will occur -for all requests. Alternatively, when set to `false`, instrumentation can be enabled +When `spring.metrics.web.server.auto-time-requests` is `true`, this instrumentation will +occur for all requests. Alternatively, when set to `false`, instrumentation can be enabled by adding `@Timed` to a request-handling method. Metrics will, by default, be generated with the name `http.server.requests`. The name