September 2018
Intermediate to advanced
412 pages
11h 12m
English
Spring Actuator enables the monitoring of Spring Boot applications. It enables the gathering of various application metrics, database status, and traffic details.
The main benefit of this library is that we can get production grade tools without having to actually implement these features ourselves.
Actuator is mainly used to expose operational information about the running application—health, metrics, info, dump, env, and so on. It uses HTTP endpoints or JMX beans to enable us to interact with it.
You enable Actuator by adding the Maven dependency, and several endpoints are enabled out of the box, which can be extended or customized as needed:
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> ...