Spring boot’s actuator module allows us to monitor and manage application usages in production environment, without coding and configuration for any of them. These monitoring and management information is exposed via REST like endpoint URLs.
The simplest way to enable the features is to add a dependency to the
spring-boot-starter-actuator starter pom file.
Spring Boot includes a number of built-in endpoints and lets we add our own. Further, each individual endpoint can be enabled or disabled as well.
Some of important and widely used actuator endpoints are given below:
|Returns list of properties in current environment|
|Returns application health information.|
|Returns all auto-configuration candidates and the reason why they ‘were’ or ‘were not’ applied.|
|Returns a complete list of all the Spring beans in your application.|
|Returns trace logs (by default the last 100 HTTP requests).|
|It performs a thread dump.|
|It shows several useful metrics information like JVM memory used, system CPU usage, open files, and much more.|