Merge branch '2.7.x'

Closes gh-32199
pull/32203/head
Andy Wilkinson 2 years ago
commit ee701e5c7d

@ -892,6 +892,8 @@ By default, metrics generated by an instrumented client are tagged with the foll
To customize the tags, and depending on your choice of client, you can provide a `@Bean` that implements `RestTemplateExchangeTagsProvider` or `WebClientExchangeTagsProvider`.
There are convenience static functions in `RestTemplateExchangeTags` and `WebClientExchangeTags`.
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`.
[[actuator.metrics.supported.tomcat]]
@ -1234,9 +1236,9 @@ As the order of common tags cannot be guaranteed by using this approach, Graphit
[[actuator.metrics.customizing.per-meter-properties]]
==== Per-meter Properties
In addition to `MeterFilter` beans, you can apply a limited set of customization on a per-meter basis by using properties.
Per-meter customizations apply to any meter IDs that start with the given name.
The following example disables any meters that have an ID starting with `example.remote`
In addition to `MeterFilter` beans, you can apply a limited set of customization on a per-meter basis using properties.
Per-meter customizations are applied, using Spring Boot's `PropertiesMeterFilter`, to any meter IDs that start with the given name.
The following example filters out any meters that have an ID starting with `example.remote`.
[source,yaml,indent=0,subs="verbatim",configprops,configblocks]
----
@ -1254,7 +1256,8 @@ The following properties allow per-meter customization:
| Property | Description
| configprop:management.metrics.enable[]
| Whether to prevent meters from emitting any metrics.
| Whether to accept meters with certain IDs.
Meters that are not accepted are filtered from the `MeterRegistry`.
| configprop:management.metrics.distribution.percentiles-histogram[]
| Whether to publish a histogram suitable for computing aggregable (across dimension) percentile approximations.

Loading…
Cancel
Save