TBLEG
扫描微信账号

扫一扫微信二维码

微服务监控

2020-03-08 信息
区块链白皮书代写

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/threaddumpJava自带的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)

http://www.imooc.com/article/291751 

6.1 ELK架构

6.2 效果

全文阅读
文章关键词
扫描关注微信账号

试试长按二维码加关注