Skip to content

Commit a253d8d

Browse files
committed
Merge branch '2.6.x' into 2.7.x
Closes gh-32198
2 parents 13edfba + 7d983be commit a253d8d

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
@@ -877,6 +877,8 @@ By default, metrics generated by an instrumented client are tagged with the foll
877877
To customize the tags, and depending on your choice of client, you can provide a `@Bean` that implements `RestTemplateExchangeTagsProvider` or `WebClientExchangeTagsProvider`.
878878
There are convenience static functions in `RestTemplateExchangeTags` and `WebClientExchangeTags`.
879879

880+
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`.
881+
880882

881883

882884
[[actuator.metrics.supported.tomcat]]
@@ -1223,9 +1225,9 @@ As the order of common tags cannot be guaranteed by using this approach, Graphit
12231225

12241226
[[actuator.metrics.customizing.per-meter-properties]]
12251227
==== Per-meter Properties
1226-
In addition to `MeterFilter` beans, you can apply a limited set of customization on a per-meter basis by using properties.
1227-
Per-meter customizations apply to any meter IDs that start with the given name.
1228-
The following example disables any meters that have an ID starting with `example.remote`
1228+
In addition to `MeterFilter` beans, you can apply a limited set of customization on a per-meter basis using properties.
1229+
Per-meter customizations are applied, using Spring Boot's `PropertiesMeterFilter`, to any meter IDs that start with the given name.
1230+
The following example filters out any meters that have an ID starting with `example.remote`.
12291231

12301232
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
12311233
----
@@ -1243,7 +1245,8 @@ The following properties allow per-meter customization:
12431245
| Property | Description
12441246

12451247
| configprop:management.metrics.enable[]
1246-
| Whether to prevent meters from emitting any metrics.
1248+
| Whether to accept meters with certain IDs.
1249+
Meters that are not accepted are filtered from the `MeterRegistry`.
12471250

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

0 commit comments

Comments
 (0)