TracePulse: 一个应用性能监控工具,针对Java及微服务项目设计,与spring-boot无缝结合,同时集成钉钉告警功能
- 与springboot无缝结合,只需引入依赖即可使用
- 线程分析:
- 根据线程名称推断出线程池名称,且对线程池中的线程根据其执行状态进行分组统计,其中Summary为线程的汇总信息,UNKNOWN为不能
判定的线程归属信息,JVM为系统本身运行需要的线程汇总信息
- 根据线程名称推断出线程池名称,且对线程池中的线程根据其执行状态进行分组统计,其中Summary为线程的汇总信息,UNKNOWN为不能
- 内存、CPU监控:
- 统计JVM进程及系统本身的内存、CPU使用占比
- 集成常见的告警软件,如钉钉
- maven使用
<dependencies>
<dependency>
<groupId>io.github.lijunweiz</groupId>
<artifactId>tracepulse-boot</artifactId>
<version>${tracepulse.version}</version>
</dependency>
</dependencies>- gradle使用
dependencies {
implementation 'io.github.lijunweiz:tracepulse-boot:${tracepulse.version}'
}访问端点
springboot配置文件须暴露端点tracepulse
management:
endpoints:
web:
exposure:
include: tracepulse启动项目后访问:http://ip:port/actuator/tracepulse
- 集成钉钉
只需在配置文件中添加如下配置, 然后依赖注入DingTalkingMonitor即可使用相关API
tracepulse:
dingtalk:
enabled: true
default-robot: apm #默认启用的钉钉机器人
robot:
apm: #机器人名称
webhook: https://oapi.dingtalk.com/robot/send?access_token=xxxx
key-words: 告警 #钉钉集器人安全配置关键字
elk:
webhook: https://oapi.dingtalk.com/robot/send?access_token=xxxx
key-words: 告警有任何问题或建议,欢迎随时联系作者