Monitoring management
By introducing spring-boot-starter-actuator, we can use the application monitoring and management functions in the quasi-production environment provided by Spring Boot. We can operate through HTTP, JMX, and SSH protocols, and automatically get audit, health and indicator information.
Steps :
-
Introduce spring-boot-starter-actuator
-
Access the monitoring endpoint through http
-
Can be shutdown (POST submission, this endpoint is closed by default)
-
Monitoring and management endpoints :
Custom endpoint information
-
Custom endpoints are generally set through endpoints + endpoint name + attribute name.
-
Modify the endpoint id (endpoints.beans.id=mybeans)
-
Enable remote application shutdown function (endpoints.shutdown.enabled=true)
-
Turn off endpoints (endpoints.beans.enabled=false)
-
Open the required endpoint
e