Codebase list golang-github-bluebreezecf-opentsdb-goclient / 8e8780f
Add how to use in README.md bluebreezecf 8 years ago
1 changed file(s) with 14 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
88 I am about to use OpenTSDB, but currently there is no useable go-sdk for OpenTSDB. So I
99 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)
1010
11 ###Current support rest apis
11 ###How to use sample
12 If you want to see how does the sample (sample.go) run, you can execute the following commands:
13 ```shell
14 cd $GOPATH
15 mkdir -p $GOPATH/src/github.com/bluebreezecf
16 cd $GOPATH/src/github.com/bluebreezecf
17 git clone https://github.com/bluebreezecf/opentsdb-goclient.git
18
19 vi sample.go //Use the real host and port of an existing OpenTSDB in Line 30: NewClient("127.0.0.1:4242")
20 go run sample.go
21
22 ```
23
24 ###Current supporting rest apis
1225 ```shell
1326 GET /api/aggregators
1427 GET,POST,DELETE /api/annotation