DCMonitor - 一个简单轻量的数据中心监控工具
一个简单轻量的数据中心监控工具,包括了 Zookeeper, Kafka, Druid. Motivated by KafkaOffsetMonitor,但是更快和更加稳定。
它采用java编写,使用 InfluxDB v0.9 作为历史指标的存储。
Zookeeper monitor
Kafka monitor
Dependences
- Run
- java(1.6 or later)
- netcat
- Compilation
- java(1.6 or later)
Installation
- Set up your Zookeeper, Kafka, Druid(If you have) for monitoring.
-
Set up InfluxDB v0.9.
- install influxdb
If v0.9 haven't been finally released by now, you may have to compile it yourself. Check its doc to see how to compile InfluxDB.
- create a database for DCMonitor, can be done by sending HTTP POST requests like:
curl -G 'http://192.168.10.60:8086/query?u=root&p=root' --data-urlencode "q=CREATE database dcmonitor" curl -G 'http://192.168.10.60:8086/query?u=root&p=root&db=dcmonitor' --data-urlencode "q=CREATE RETENTION POLICY seven_days ON dcmonitor DURATION 168h REPLICATION 1 DEFAULT"
here192.168.10.60:8086is where InfluxDB installed, and168hshows we only keep the last 7 days historical metrics. Check here for detail.
-
Compile & deploy DCMonitor
- compile
git clone git@github.com:shunfei/DCMonitor.git cd DCMonitor ./build.sh
Then atargetfolder will be generated under root folder.
- deploy
You only need to deploytarget,run.sh,configto target machine.
Modify configurations inconfig/config.json.
Runrun.sh, if every thing is fine, visithttp://hostname:8075to enjoy!
本文由用户 jopen 自行上传分享,仅供网友学习交流。所有权归原作者,若您的权利被侵害,请联系管理员。
转载本站原创文章,请注明出处,并保留原始链接、图片水印。
本站是一个以用户分享为主的开源技术平台,欢迎各类分享!