without Actuator, we face some problems like How can I monitor and manage spring boot applications. How can I check the status of the application? How can I access applications metrics
When we use spring boot Actuator properties. these problems resolve automatically. we can easily monitor, manage, status, and metrics our application. We can do more work with Actuator.by default 2 Actuator properties enable when we add Actuator dependency. like /Actuator /info and /Actuator/heath
<dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-actuator</artifactId> </dependency> </dependencies>
Endpoints are prefixed with:/actuator
info.app.name=code4devops info.app.email=code4devops@gmail.com info.app.mobile=9999999999
Name: | Description: |
---|---|
/actuator/auditevents | Audit events for your application |
/actuator/beans | List of all beans registered in the Spring application context |
/actuator/mappings | List of all @RequestMapping paths |
/actuator/threaddump | All Runing threads in your application |
/actuator/env | Exposes properties from Springs ConfigurableEnvironment |
Exposing 2 endpoint(s) beneath base path '/actuator'
application.properties
#use wildcard "*" to exposed all endpoints #Can also exposed individual endpoints with a comma-delimited list # management.endpoints.web.exposure.include=* management.endpoints.web.exposure.exclude=env,beans,health,info