Default Spring Boot metrics
By default, the Spring Boot actuator configures Micrometer to gather the most commonly used metrics such as the process uptime, CPU usage, memory usage by regions, GC pauses, treads count, loaded classes, and the number of open file descriptors. It also tracks Logback logger events as counters. All of this behavior is defined by an actuator's MetricsAutoConfiguration and gives a pretty evident picture regarding the service metrics.
For reactive applications, an actuator provides WebFluxMetricsAutoConfiguration, which adds a specialized WebFilter. This filter adds callbacks to the ServerWebExchange to intersect the moment when the request processing is finished. It is possible to report the request time. In addition, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access