Spring Boot Actuator provides dependency management and auto-configuration for Micrometer, an application metrics facade that supports numerous monitoring systems:
Micrometer provides a separate module for each supported monitoring system. Depending on one (or more) of these modules is sufficient to get started with Micrometer in your Spring Boot application. To learn more about Micrometer’s capabilities, please refer to its reference documentation.
Auto-configuration will enable the instrumentation of requests handled by Spring MVC.
When spring.metrics.web.server.auto-time-requests
is true
, this instrumentation will
occur for all requests. Alternatively, when set to false
, instrumentation can be enabled
by adding @Timed
to a request-handling method.
Metrics will, by default, be generated with the name http.server.requests
. The name
can be customized using the spring.metrics.web.server.requests-metrics-name
property.
Spring MVC-related metrics will, by default, be tagged with the following:
To customize the tags, provide a @Bean
that implements WebMvcTagsProvider
.
Auto-configuration will enable the instrumentation of all requests handled by WebFlux
controllers. A helper class, RouterFunctionMetrics
, is also provided that can be
used to instrument applications using WebFlux’s functional programming model.
Metrics will, by default, be generated with the name http.server.requests
. The name
can be customized using the spring.metrics.web.server.requests-metrics-name
property.
WebFlux-related metrics for the annotation-based programming model will, by default, be tagged with the following:
To customize the tags, provide a @Bean
that implements WebFluxTagsProvider
.
Metrics for the functional programming model will, by default, be tagged with the following:
To customize the tags, use the defaultTags
method on the RouterFunctionMetrics
instance that you are using.
Auto-configuration will customize the auto-configured RestTemplate
to enable the
instrumentation of its requests. MetricsRestTemplateCustomizer
can be used to
customize your own RestTemplate
instances.
Metrics will, by default, be generated with the name http.client.requests
. The name
can be customized using the spring.metrics.web.client.requests-metrics-name
property.
Metrics generated by an instrumented RestTemplate
will, by default, be tagged with
the following:
Auto-configuration will enable binding of a number of Spring Integration-related metrics:
Table 53.1. General metrics
Metric | Description |
---|---|
| Number of Spring Integration channels |
| Number of Spring Integration handlers |
| Number of Spring Integration sources |
Table 53.2. Channel metrics
Metric | Description |
---|---|
| Number of receives |
| Number of failed sends |
| Number of successful sends |
Table 53.3. Handler metrics
Metric | Description |
---|---|
| Maximum handler duration in milliseconds |
| Minimum handler duration in milliseconds |
| Mean handler duration in milliseconds |
| Number of active handlers |
Table 53.4. Source metrics
Metric | Description |
---|---|
| Number of successful source calls |