opentsdb basic install

Posted 我的空中楼阁

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了opentsdb basic install相关的知识,希望对你有一定的参考价值。

git clone git://github.com/OpenTSDB/opentsdb.git
cd opentsdb
./build.sh

env COMPRESSION=NONE HBASE_HOME=/data/hbase123 ./src/create_table.sh
在生产环境中,最好设定一种压缩格式,如LZO,GZIP,SNAPPY。
./src/opentsdb.conf
tsd.http.cachedir - Path to write temporary files to
tsd.http.staticroot - Path to the static GUI files found in ./build/staticroot
tsd.storage.hbase.zk_quorum - If HBase and Zookeeper are not running on the same machine, specify the host and port here.

从SRC复制一份opentsdb.conf到build目录下,然后编缉配置以上三个项即可。
tsdtmp=${TMPDIR-‘/tmp‘}/tsd    # For best performance, make sure
mkdir -p "$tsdtmp"             # your temporary directory uses tmpfs
./build/tsdb tsd --port=4242

The Cache Directory stores temporary files generated when a graph is requested via the built-in GUI. These files should be purged periodically to free up space. OpenTSDB doesn‘t clean up after itself at this time but there is a script that should be run as a cron at least once a day located at tools/clean_cache.sh.

以上是关于opentsdb basic install的主要内容,如果未能解决你的问题,请参考以下文章

opentsdb探索之路——部分设计与实现

OpenTSDB 生产应用与思考(转)

OpenTSDB v2.4.0 Intellij IDEA开发环境搭建

OpenTSDB简单使用

OpenTSDB 查询数据

opentsdb+grafana监控系按使用总结