Commit dd27682a authored by Stephane Nicoll's avatar Stephane Nicoll

Merge pull request #10316 from michael-simons:fix-metrics-docs

* pr/10316:
  Polish "Fix names of metrics properties"
  Fix names of metrics properties
parents e47d868f a8e90ad7
...@@ -876,12 +876,12 @@ its https://micrometer.io/docs[reference documentation]. ...@@ -876,12 +876,12 @@ its https://micrometer.io/docs[reference documentation].
[[production-ready-metrics-spring-mvc]] [[production-ready-metrics-spring-mvc]]
=== Spring MVC metrics === Spring MVC metrics
Auto-configuration will enable the instrumentation of requests handled by Spring MVC. 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
for all requests. Alternatively, when set to `false`, instrumentation can be enabled occur for all requests. Alternatively, when set to `false`, instrumentation can be enabled
by adding `@Timed` to a request-handling method. by adding `@Timed` to a request-handling method.
Metrics will, by default, be generated with the name `http.server.requests`. The name 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 ...@@ -904,7 +904,7 @@ controllers. A helper class, `RouterFunctionMetrics`, is also provided that can
used to instrument applications using WebFlux's funtional programming model. used to instrument applications using WebFlux's funtional programming model.
Metrics will, by default, be generated with the name `http.server.requests`. The name 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 ...@@ -939,7 +939,7 @@ instrumentation of its requests. `MetricsRestTemplateCustomizer` can be used to
customize your own `RestTemplate` instances. customize your own `RestTemplate` instances.
Metrics will, by default, be generated with the name `http.client.requests`. The name 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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment