tsdb

command module
v0.0.0-...-32d7054 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2018 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Lightweight Time Series Database

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

Build Status codecov Go Report Card GoDoc

Warning

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:

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

API Usage

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

PHP Example Usage

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址