Hi Guys,
I am trying to push stock price data in opentsdb . I created the schema like below :
test.price 1497613464196 421.615967 {priceType=askPrice, contributer=contributer50, instrument=INSTR_ID1}
As i have gone through opentsdb document , i came to know that we can have aggregate function on time stamp only ? .
So question is how to use aggregation across time series .
Like in below example i am getting aggregation on the basis of time stamp .
./tsdb query 2017/06/16-17:00:00 2017/06/16-17:14:44 sum test.price
test.price 1497613464196 12889.014371 {priceType=askPrice, instrument=INSTR_ID1}
test.price 1497613692461 1301.265295 {priceType=askPrice, instrument=INSTR_ID1}
test.price 1497614072703 2022.726700 {priceType=askPrice, instrument=INSTR_ID1}
First question is , is there any other way to design scheme for ask,bid and mid price. If schema design is right then how can i apply aggregation across time series .
Regards,
Aashish