项目作者: semihalev

项目描述 :
Lightweight Time Series Database
高级语言: Go
项目地址: git://github.com/semihalev/tsdb.git
创建时间: 2015-06-26T13:27:12Z
项目社区:https://github.com/semihalev/tsdb

开源协议:MIT License

下载


Lightweight Time Series Database

TSDB is lightweight in-memory time series database with BuntDB as backend

Build Status
codecov
Go Report Card
GoDoc

Warning

  1. BoltDB backend changed. If you update latest version, migrate your data first.

Features

  • HTTP API support

Roadmap

  • Backend change to BuntDB
  • Redis server support
  • Raft support

Usage

Start using it

Download and install it:

  1. $ go get github.com/semihalev/tsdb
  1. $ go build

API Usage

Query Series:

  1. $ curl http://127.0.0.1:4080/api/v1/query?series=world (Optional parameters order=asc|desc, limit, offset)

Write Series:

  1. $ curl http://127.0.0.1:4080/api/v1/write?series=world&value=hello (Optional parameters ttl=duration)

Count Series:

  1. $ curl http://127.0.0.1:4080/api/v1/count?series=world

Delete Series:

  1. $ curl http://127.0.0.1:4080/api/v1/delete?series=world

Delete by Time:

  1. $ curl http://127.0.0.1:4080/api/v1/deletebytime?series=world&time=1435184955779847472

Backup:

  1. $ curl http://127.0.0.1:4080/backup -o backup.db

PHP Example Usage

  • tsdb::query()
  • tsdb::write()
  • tsdb::count()
  • tsdb::delete()
  • tsdb::deletebytime()