We tried using this expression to get an average of the number of data points
avg(q("sum:rate:tsd.hbase.rpcs.batched","1h","")*1024). Does this give me the exact count?
The other thing i tried is using avg(q("sum:rate:tsd.rpc.received{type=put|telnet}","1h","")) this gives a different value than the above one.
avg(q("sum:rate:tsd.hbase.rpcs.batched","1h","")*1024) = 52.89k
avg(q("sum:rate:tsd.rpc.received","1h","")) = 10.67k
My understanding on tsd.rpc.received metric is that it gives the RPC request received by TSDB and tsd.hbase.rpcs.batched gives the batches send to hbase by the client. So i thought more or less these 2 metrics should give us the same count.
How are these two metrics different? And how different are the results suppose to be?
The other question i have is if one component is sending a certain number ( say 200 request per sec) of request to Opentsdb in 1 sec then will that be one connection per request or one connection per component which is sending the data?