How to insert data into OpenTSDB (time series database)

I am new to OpenTSDB. I somehow managed to install and configure OpenTSDB, but I don’t know how to put data into OpenTSDB from the client. Can any of you help me?

+5
source share
4 answers

Short answer: " put name timestamp value [tags]" commands are a network protocol for adding data to OpenTSDB via TCP / IP. Therefore, from your Java program, you can open a TCP socket for the TSD port and start writing commands to add your data.

Obviously, this still leaves plenty of detail for the reader to exercise.

, , , . TSD , , . Yammer/Coda Hale Metrics ( Java, , )

, Graphite Ganglia. OpenTSDB ( - - github, , , ).

+2

. , ./tsdb mkmetric mymetric.data_1 mymetric.data_2, ,

, .

mymetric.data_1 1295643636 48 a=foo

./tsdb import file

"telnet" , , put, echo "put mymetric.data_1 1295643636 48 a=foo" | nc -w 15 tsdHost tsdPort (linux way:-))

+4

OpenTSDB 2.0:                http://opentsdb.net/docs/build/html/ , openTSDB. , openTSDB2.0 HTTP api .

0

. , , .

0
source