git clone git://github.com/OpenTSDB/tcollector.git
修改tcollector/startstop文件
TSD_HOST=localhost#指定TSD的IP或是HostName
TCOLLECTOR_PATH=/usr/hadoop/tcollector
Opentsdb進(jìn)行數(shù)據(jù)操作是,會(huì)對(duì)Metric進(jìn)行數(shù)據(jù)校驗(yàn),由于tcollect首次運(yùn)行時(shí)需要?jiǎng)?chuàng)建大量的Metric,所以第1次運(yùn)行的時(shí)候可以指定Opentsd運(yùn)行在--auto-metric模式下,該模式會(huì)自動(dòng)創(chuàng)建metric
./build/tsdb tsd ----auto-metric
第1次啟動(dòng)后,為了保證metric的有效性,可以去掉--auto-metric參數(shù)進(jìn)行啟動(dòng)
cd tcollector
./startstop start
查看hbase表記錄
scan ‘tsdb-uid’
scan ‘tsdb
查看OpenTSDB的界面