1 Star 1 Fork 0

Jawf / druid-monitor-detector

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 3.60 KB
一键复制 编辑 原始数据 按行查看 历史
Jawf 提交于 2018-12-22 23:45 . update readme

druid-monitor-detector

Druid Monitor Detector to analysis druid monitor API data and send monitoring notification

Function

  • Monitor & Detect Project Bad Method excution health
  • Monitor & Detect Project Bad SQL execution health

Strategy

  • Base on execute error count, execute average time, execute time too long!

TODO

  • Monitor & Detect Project URI execution

Step to run:

build and start

git clone https://github.com/Jawf/druid-monitor-detector.git
mvn clean package
mvn spring-boot:run

use druid-monitor ui

access to http://localhost:8080/druid

prepare data:

Integrate to your project

  • Copy package: config, component, bean, schedule to your project
  • Able to implement send notication method to monitor system heath.
  • Ready to work!

Normally runing log

  • Shedule Run Normally Log:
2018-12-20 23:48:01.002 DEBUG 39876 --- [PoolScheduler10] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadMethodExcution-execute...
2018-12-20 23:48:01.004 DEBUG 39876 --- [PoolScheduler10] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadMethodExcution-executed query and result process.1..
2018-12-20 23:48:01.005 DEBUG 39876 --- [PoolScheduler10] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadMethodExcution-executed query and result process.2..
2018-12-20 23:48:01.006 DEBUG 39876 --- [PoolScheduler10] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadMethodExcution-executed query and result process.3..
2018-12-20 23:48:01.006 DEBUG 39876 --- [PoolScheduler10] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadMethodExcution-executed query and result process.4..
2018-12-20 23:48:01.007 DEBUG 39876 --- [PoolScheduler10] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadMethodExcution-executed query and result process.5..
2018-12-20 23:48:10.001 DEBUG 39876 --- [tPoolScheduler3] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadSqlExcution-execute...
2018-12-20 23:48:10.004 DEBUG 39876 --- [tPoolScheduler3] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadSqlExcution-executed query and result process.1..
2018-12-20 23:48:10.010 DEBUG 39876 --- [tPoolScheduler3] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadSqlExcution-executed query and result process.2..
2018-12-20 23:48:10.012 DEBUG 39876 --- [tPoolScheduler3] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadSqlExcution-executed query and result process.3..
2018-12-20 23:48:10.014 DEBUG 39876 --- [tPoolScheduler3] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadSqlExcution-executed query and result process.4..
2018-12-20 23:48:10.016 DEBUG 39876 --- [tPoolScheduler3] c.d.m.d.c.MonitorDetectorComponent       : monitorAndDetectBadSqlExcution-executed query and result process.5..

based on druid-monitor

Ruid-Monitor SQL Stat Ruid-Monitor Spring Method Stat Ruid-Monitor Request URI Stat

Mail Notification Content

Method Notification Content Screenshot

Java
1
https://gitee.com/mrstudio/druid-monitor-detector.git
git@gitee.com:mrstudio/druid-monitor-detector.git
mrstudio
druid-monitor-detector
druid-monitor-detector
master

搜索帮助