codebeat badge GitHub

CnosDB

English | 简体中文

An Open Source Distributed Time Series Database with high performance, high compression ratio and high usability.

Click to view roadmap

Features

  • High batch writing throughput.

  • High compression ratio.

  • Rich calculation algorithms.

Join the community

All developers/users who love time series databases are welcome to participate in the CnosDB User Group. Scan the QR code below and add CC to join the group.

Please check Instructions for joining the group beforehand.

Quick start

If you need a complete getting started guide, please check the Quickstart Guide

Construct

  1. Clone

    git clone https://github.com/cnosdb/cnosdb.git
    
  2. Compile

    go install ./...
    

Operation

  1. Start

    $GOPATH/bin/cnosdb
  2. Use

    $GOPATH/bin/cnosdb-cli

User’s Guide

Create database

curl -i -XPOST http://localhost:8086/query --data-urlencode "q=CREATE DATABASE mydb"

Insert data

curl -i -XPOST 'http://localhost:8086/write?db=db' --data-binary 'cpu,host=server01,region=Beijing idle=0.72 1434055562000000000'

Query

curl -G 'http://localhost:8086/query?pretty=true' --data-urlencode "db=db" --data-urlencode "q=SELECT \"idle\" FROM \"cpu\" WHERE \"region\"='Beijing'"

How to contribute

Please refer to Contribution Guide to contribute to CnosDB.

License

MIT License

Contact

GitHub

View Github