/tagtree

Time series database tagging index

Primary LanguageC++GNU General Public License v3.0GPL-3.0

TagTree

A tagging index for time series database.

Build

$ git submodule update --init
$ mkdir build && cd build
$ cmake .. && make

Original Prometheus Integration

TagTree can be integrated with the original Prometheus storage backend (tsdb). The modified Prometheus code is in this repo. To run the integrated time series database, you need to prepare the tagtreego module:

$ git clone https://github.com/Jimx-/tagtree.git $GOPATH/src/github.com/Jimx-/tagtree
$ cd $GOPATH/src/github.com/Jimx-/tagtree
$ git submodule update --init
$ mkdir build && cd build
$ cmake .. && make
$ cd ..
$ ln -s build/tagtree/3rdparty/bptree/libbptree.a tagtreego/
$ ln -s build/promql/libpromql.a tagtreego/
$ ln -s build/tagtree/libtagtree.a tagtreego/
$ ln -s build/tagtree/libtagtreego.so tagtreego/
$ ln -s build/tagtree/tagtreego.go tagtreego/

After that, the integrated Prometheus server can be started:

$ cd $GOPATH/src/github.com/prometheus/prometheus
$ LD_LIBRARY_PATH=$GOAPTH/src/github.com/Jimx-/tagtree/build/tagtree:$LD_LIBRARY_PATH GO111MODULE=off go run cmd/prometheus/main.go --config.file=config.yml ...