赞
踩
Actuator是spring boot的一个附加功能,可帮助你在应用程序生产环境时监视和管理应用程序。
可以使用HTTP的各种请求来监管,审计,收集应用的运行情况.特别对于微服务管理十分有意义.
缺点:没有可视化界面,返回json格式
1.创建一个springboot项目
2.添加actuator依赖
- <dependency>
- <groupId>org.springframework.boot</groupId>
- <artifactId>spring-boot-starter-actuator</artifactId>
- </dependency>
3.Actuator访问路径:通过actuator/+端点名就可以获取相应的信息。
actuator提供了很多方法,视频里也有演示,有兴趣自己搜索,此处略去。
我们可以使用AdminUI:底层使用Actuator监控应用,实现可视化界面。
所有服务的监控中心,都注册到AdminUI上管理(类似于注册中心),AdminUI负责可视化展示出来。
使用方式参考:https://blog.csdn.net/oGuiGui12345/article/details/99200347
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。