https://github.com/qingwave/go-opentsdb
Go-lang Client of the OpenTSDB implementing the arranged Rest APIs
https://github.com/qingwave/go-opentsdb
Last synced: 7 months ago
JSON representation
Go-lang Client of the OpenTSDB implementing the arranged Rest APIs
- Host: GitHub
- URL: https://github.com/qingwave/go-opentsdb
- Owner: qingwave
- License: apache-2.0
- Fork: true (bluebreezecf/opentsdb-goclient)
- Created: 2020-08-20T08:24:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-08-20T10:21:29.000Z (over 5 years ago)
- Last Synced: 2024-10-04T04:54:16.452Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 66.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## opentsdb-goclient
### Backgroud
OpenTSDB is a distributed, scalable Time Series Database (TSDB) written on top of HBase.
OpenTSDB was written to address a common need: store, index and serve metrics collected
from computer systems (network gear, operating systems, applications) at a large scale,
and make this data easily accessible and graphable.
I am about to use OpenTSDB, but currently there is no useable go-sdk for OpenTSDB. So I
develop the opentsdb-goclient for convenience according to the [OpenTSDB Rest API Doc] (http://opentsdb.net/docs/build/html/api_http/index.html#api-endpoints)
Fork from https://github.com/bluebreezecf/opentsdb-goclient.git
### How to use sample
```go
import "github.com/qingwave/go-opentsdb/opentsdb"
```
If you want to see how does the sample (sample.go) run, you can execute the following commands:
``` shell
cd $GOPATH
mkdir -p $GOPATH/src/github.com/qingwave
cd $GOPATH/src/github.com/qingwave
git clone https://github.com/qingwave/opentsdb-goclient.git
vi sample.go //Use the real host and port of an existing OpenTSDB in Line 33: OpentsdbHost: "127.0.0.1:4242"
go run examples/sample.go
```
### Current supporting rest apis
```bash
GET /api/aggregators
GET,POST,DELETE /api/annotation
POST,DELETE /api/annotation/bulk
GET /api/config
GET /api/dropcaches
POST /api/put
GET /api/query
GET /api/query/last
GET /api/serializers
GET /api/stats
GET /api/suggest
POST /api/uid/assign
GET,POST,DELETE /api/uid/tsmeta
GET,POST,DELETE /api/uid/uidmeta
GET /api/version
```