Akumuli icon indicating copy to clipboard operation
Akumuli copied to clipboard

query does not work...Shoult it?

Open jaffa4 opened this issue 6 years ago • 5 comments

C:\Users>perl send_query_akumuli.pl { "aggregate" : { "close" : "count" } } HTTP/1.1 200 OK Connection: Keep-Alive Date: Sat, 05 May 2018 15:34:07 GMT Client-Date: Sat, 05 May 2018 15:34:07 GMT Client-Peer: 192.168.0.12:8181 Client-Response-Num: 1 Client-Transfer-Encoding: chunked

-query parsing error

What is wrong? THanks...

jaffa4 avatar May 05 '18 15:05 jaffa4

Hi, This query shouldn't work. You should add range field.

Lazin avatar May 06 '18 07:05 Lazin

THanks for you reply. Feel free to ignore what I write next but I think it would improve your software. Allow me to give you feedback on your software. Generally, I had a problem with the easy of use.

  1. I find the documentation misleading there is an example over there { "aggregate": { "cpu": "max" } } which implied this should work. Maybe you could spend more time on it..

  2. I think syntax should be defined precisely.. You do not mention what is optional or not in a syntax.

  3. The server does not give back detailed enough error messages... IT could say what is wrong with the syntax in a more explicit way. for example,, It did not say missing range.

  4. I could not find a client application for testing... issuing reads and writes...

  5. I miss an install package for xenial,

  6. The documentation did not describe what to do in case of xenial.... I had to issue a command for a specific instatlation for logging which I found among the issues. 7.Not sure what happens to duplicates. Are they inserted or not?

  7. Can "writing is late" be turned off?

  8. I miss sql support.. 10... command for stats is missing from the documentation.

jaffa4 avatar May 06 '18 08:05 jaffa4

  1. I was not clear from the documentation that 1 tag is needed for insertion at least....

jaffa4 avatar May 06 '18 08:05 jaffa4

  1. I think the parse is too sensitive... It should handle extra whitespace anywhere... It should not stop just because there is an empty line between input data.

jaffa4 avatar May 06 '18 08:05 jaffa4

Thanks for the response. I'll try to fix the documentation issues and error reporting. There is no 16.04 package yet (Travis-CI doesn't support it yet and docker build on Travis-CI is a lot of work). The duplicates are inserted. "Late write" error can't be disabled at the moment (I'd prefer to add late write support instead of dropping this error). What do you mean by 11? For testing, you can use any existing library that can write data to OpenTSDB using the telnet-API. For instance, netdata or tcollector.

Lazin avatar May 06 '18 14:05 Lazin