微服务监控
微服务监控
·
1 Spring Boot Actutator
1.1 SpringBoot中引入依赖
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
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/
https://github.com/yuanyu-1997/spring-cloud-alibaba/tree/master/01-spring-boot-actuator
2 Sentinel Dashboard
3 Spring Cloud Sleuth + Zipkin
4 JVM监控
- Spring Boot Actuator: metrics/heapdump/threaddump
- Java自带的JVM监控工具:jconsole/jvisualvm
5 GC日志/线程Dump日志/堆Dump可视化分析
GCEasy:https://gceasy.io/
-Xmx5m -XX:+PrintGCDetails -Xloggc:gc.log
FastThread:https://fastthread.io/
HeapHero:https://heaphero.io/
GCPlot:http://ggplot.yhathq.com/
6 日志监控ELK
ELK(Elasticsearch + Logstash + Kibana)
6.1 ELK架构
6.2 效果
更多推荐
已为社区贡献13条内容
所有评论(0)