Spring Boot Actuator
In essence, Actuator brings production-ready features to our application.
Spring Boot Actuator is a sub-project of Spring Boot that provides additional features for monitoring and managing Spring Boot applications. It provides a set of endpoints for monitoring and managing the application, such as metrics, health checks, and configuration information. These endpoints can be accessed via HTTP or JMX, and can be secured and customized as needed.
Spring Boot Actuator provides several useful endpoints out of the box, such as:/health: provides information about the health of the application, such as whether it is running and if there are any errors.
/metrics: provides metrics about the application, such as memory usage, CPU usage, and request count.
/info: provides general information about the application, such as the version and build information.
/configprops: provides information about the configuration properties used by the application.
/trace: provides a trace of the most recent HTTP requests to the application.
Spring Boot Actuator also provides the ability to create custom endpoints, making it easy to add new functionality for monitoring and managing your application.
Spring Boot Actuator is useful for monitoring and managing the production environment, it's also useful for developing and testing the application, it allows monitoring the application's state, health, and performance, and quickly identify and troubleshoot issues.
Once this dependency is on the classpath, several endpoints are available for us out of the box. As with most Spring modules, we can easily configure or extend it in many ways.
Ref: [Spring Boot Actuator] (https://www.baeldung.com/spring-boot-actuators)