springboot-monitoring management

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 :
    Insert picture description here

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

Guess you like

Origin blog.csdn.net/qq_40332952/article/details/108503473