Add how to use in README.md
bluebreezecf
8 years ago
8 | 8 | I am about to use OpenTSDB, but currently there is no useable go-sdk for OpenTSDB. So I |
9 | 9 | 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) |
10 | 10 | |
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 | |
12 | 25 | ```shell |
13 | 26 | GET /api/aggregators |
14 | 27 | GET,POST,DELETE /api/annotation |