Minimal docker image for OpenTSDB (http://opentsdb.net)
OpenTSDB requires HBase, you should set it up yourself. Image contains only OpenTSDB itself.
Clone this repo: git clone https://github.com/olegfedoseev/docker-opentsdb.git
and, just run make
and it'll do everything else.
Clone this repo: git clone https://github.com/olegfedoseev/docker-opentsdb.git
Then, you need download deb-package with prebuild binaries of OpenTSDB.
Run make download
and you get opentsdb
directory.
Now you can run docker build
:
docker build --rm -t olegfedoseev/opentsdb .
If you need to run it as tsd
command:
docker run -it --rm -e ZK_QUORUM=hbase-host olegfedoseev/opentsdb query ...
It's even better if you hide docker run -it --rm -e ZK_QUORUM=hbase-host olegfedoseev/opentsdb
behind shell-alias.
Then you can run it as "native" opentsdb: tsd query ...
If you want to start server:
docker run -d -p 4242:4242 \
-e TIMEZONE=Asia/Novosibirsk \
-e ZK_QUORUM=db1.hbase,db2.hbase,db3.hbase \
-e COMPACTION=False \
olegfedoseev/opentsdb
TIMEZONE
is value for tsd.core.timezone
COMPACTION
is value for tsd.storage.enable_compaction
FLUSH_INTERVAL
is value for tsd.storage.flush_interval
ZK_QUORUM
is value for tsd.storage.hbase.zk_quorum