Skip to content

Commit ee701e5

Browse files
committed
Merge branch '2.7.x'
Closes gh-32199
2 parents 43b8890 + a253d8d commit ee701e5

File tree

1 file changed

+7
-4
lines changed
  • spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator

1 file changed

+7
-4
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/actuator/metrics.adoc

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,8 @@ By default, metrics generated by an instrumented client are tagged with the foll
892892
To customize the tags, and depending on your choice of client, you can provide a `@Bean` that implements `RestTemplateExchangeTagsProvider` or `WebClientExchangeTagsProvider`.
893893
There are convenience static functions in `RestTemplateExchangeTags` and `WebClientExchangeTags`.
894894

895+
If you do not want to record metrics for all `RestTemplate` and `WebClient` requests, set configprop:management.metrics.web.client.request.autotime.enabled[] to `false`.
896+
895897

896898

897899
[[actuator.metrics.supported.tomcat]]
@@ -1234,9 +1236,9 @@ As the order of common tags cannot be guaranteed by using this approach, Graphit
12341236

12351237
[[actuator.metrics.customizing.per-meter-properties]]
12361238
==== Per-meter Properties
1237-
In addition to `MeterFilter` beans, you can apply a limited set of customization on a per-meter basis by using properties.
1238-
Per-meter customizations apply to any meter IDs that start with the given name.
1239-
The following example disables any meters that have an ID starting with `example.remote`
1239+
In addition to `MeterFilter` beans, you can apply a limited set of customization on a per-meter basis using properties.
1240+
Per-meter customizations are applied, using Spring Boot's `PropertiesMeterFilter`, to any meter IDs that start with the given name.
1241+
The following example filters out any meters that have an ID starting with `example.remote`.
12401242

12411243
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
12421244
----
@@ -1254,7 +1256,8 @@ The following properties allow per-meter customization:
12541256
| Property | Description
12551257

12561258
| configprop:management.metrics.enable[]
1257-
| Whether to prevent meters from emitting any metrics.
1259+
| Whether to accept meters with certain IDs.
1260+
Meters that are not accepted are filtered from the `MeterRegistry`.
12581261

12591262
| configprop:management.metrics.distribution.percentiles-histogram[]
12601263
| Whether to publish a histogram suitable for computing aggregable (across dimension) percentile approximations.

0 commit comments

Comments
 (0)