TSDB is lightweight in-memory time series database with BuntDB as backend
BoltDB backend changed. If you update latest version, migrate your data first.
- HTTP API support
- Backend change to BuntDB
- Redis server support
- Raft support
Download and install it:
$ go get github.com/semihalev/tsdb
$ go build
Query Series:
$ curl http://127.0.0.1:4080/api/v1/query?series=world (Optional parameters order=asc|desc, limit, offset)
Write Series:
$ curl http://127.0.0.1:4080/api/v1/write?series=world&value=hello (Optional parameters ttl=duration)
Count Series:
$ curl http://127.0.0.1:4080/api/v1/count?series=world
Delete Series:
$ curl http://127.0.0.1:4080/api/v1/delete?series=world
Delete by Time:
$ curl http://127.0.0.1:4080/api/v1/deletebytime?series=world&time=1435184955779847472
Backup:
$ curl http://127.0.0.1:4080/backup -o backup.db
- tsdb::query()
- tsdb::write()
- tsdb::count()
- tsdb::delete()
- tsdb::deletebytime()