1 Spring Boot Actutator
1.1 SpringBoot中引入依賴
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
</dependencies>
1.2 開放端口
health info
management:
endpoints:
web:
exposure:
include: '*'
1.3 遊覽器查看
1.4 可視化界面Spring Boot Admin
- 爲Spring Boot量身打造的一個簡單易用的監控數據管理工具
- GitHub:https://github.com/codecentric/spring-boot-admin
- 官方文檔:https://codecentric.github.io/spring-boot-admin/2.1.6/
2 Sentinel Dashboard
3 Spring Cloud Sleuth + Zipkin