This commit is contained in:
Phillip Webb
2021-04-06 14:59:13 -07:00
parent e7314623cb
commit 4b05dbf4a2
4 changed files with 7 additions and 6 deletions

View File

@@ -2234,6 +2234,8 @@ To replace the default tags, provide a `@Bean` that implements `WebFluxTagsProvi
TIP: In some cases, exceptions handled in controllers and handler functions are not recorded as request metrics tags.
Applications can opt-in and record exceptions by <<spring-boot-features.adoc#boot-features-webflux-error-handling, setting handled exceptions as request parameters>>.
[[production-ready-metrics-jersey-server]]
==== Jersey Server Metrics
When Micrometer's `micrometer-jersey2` module is on the classpath, auto-configuration enables the instrumentation of requests handled by the Jersey JAX-RS implementation.
@@ -2428,7 +2430,7 @@ To replace the default metric tags, define a `MongoMetricsCommandTagsProvider` b
[source,java,indent=0]
----
include::{include-productionreadyfeatures}/metrics/mongo/SampleCommandTagsProviderConfiguration.java[tag=*]
include::{include-productionreadyfeatures}/metrics/mongo/SampleCommandTagsProviderConfiguration.java[]
----
To disable the auto-configured command metrics, set the following property:
@@ -2481,6 +2483,7 @@ To disable the auto-configured connection pool metrics, set the following proper
----
[[production-ready-metrics-custom]]
=== Registering custom metrics
To register custom metrics, inject `MeterRegistry` into your component, as shown in the following example: