SpringBoot Admin
可以看作是Spring actuator 端点监控的一个UI界面,可以很方便的查看服务的运行情况。
部分服务不在线
如上图,在项目整合了部分组件后,出现状态显示不在线,但应用还是能够正常的对外提供服务。
- 我们知道 应用展示的在线状态是读取的
Spring actuator health endpoint数据
curl http://127.0.1.1:5002/actuator/health
{"status":"DOWN"}
- 此时无法通过
SpringBoot Admin
无法获取更多的细节, 建议开发环境开启端点的详细信息。
management:
endpoints:
web:
exposure:
include: '*'
endpoint:
health:
show-details: always #dev open
- 再次尝试访问, 输出了全部组件的状态,可以明确的看到由于
sentinel
状态不对影响全局状态为down
curl http://127.0.1.1:5002/actuator/health
{"status":"DOWN","components":{"discoveryComposite":{"status":"UP","components":{"disco