Health monitoring of Spring Boot 2.0 Project actuator

notably the completion of micro actuator monitoring services, complete monitoring of governance. You can view the data processing and service calls between micro, when between them appeared abnormal, you can quickly locate problem areas.
joined actuator maven project dependencies in pom.xml file:

<dependency>
      <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-starter-actuator</artifactId>
  </dependency>

Configuration
Note that Spring Boot 2.0 relative to the previous version, Actuator many changes,

keys to change the configuration of
the new property the old property
Here Insert Picture Description
base path
for all endpoints by default have been moved to / actuator. Is a multi-path with Actuator;
1.x versions are directly ip: {port} / health
Version 2.0 ip: {port} / actuator / health

1.X when property:
Here Insert Picture Description
2.0 some of the changes:
Here Insert Picture Description
the reference article to learn Spring Boot :( twenty-seven) Spring Boot 2.0 used Actuator

Published 80 original articles · won praise 140 · views 640 000 +

Guess you like

Origin blog.csdn.net/linjpg/article/details/102383738