spotify / spotify-heroic-datasource

Heroic datasource for Grafana
Apache License 2.0
16 stars 7 forks source link

grafana 7 queries error #135

Open coutouly opened 4 years ago

coutouly commented 4 years ago

when I upgrade to grafana 7 I get this error: Unrecognized token 'queries': was expecting ('true', 'false' or 'null')

sjoeboo commented 4 years ago

Can you let us know version of the datasource you’re running? We’ve only just started evaluating Grafana 7 internally.

coutouly commented 4 years ago

my version is Release 0.9.1 in the version 6:

curl 'http://rsdb.obs-nancay.fr:8080/query/batch' -H 'Connection: keep-alive' -H 'Accept: application/json, text/plain, */*' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' -H 'Origin: http://rsdb.obs-nancay.fr:8083' -H 'Referer: http://rsdb.obs-nancay.fr:8083/d/WLfciIemk/nda?orgId=1&fullscreen&edit&panelId=6' -H 'Accept-Language: fr-FR,fr;q=0.9' --data-binary '{"queries":{"A":{"filter":["and",["key","nda"],["=","host","rsdb"],["=","f","10350"]],"aggregators":[],"features":["com.spotify.heroic.distributed_aggregations"],"range":{"type":"absolute","start":1357037123000,"end":1357038831000}}}}' --compressed --insecure

in the version 7

curl 'http://rsdbdev.obs-nancay.fr:8081/query/batch' -H 'Connection: keep-alive' -H 'accept: application/json, text/plain, */*' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36' -H 'content-type: application/json;charset=UTF-8' -H 'Origin: http://rsdbdev.obs-nancay.fr:8083' -H 'Referer: http://rsdbdev.obs-nancay.fr:8083/d/WLfciIemk/nda?orgId=1' -H 'Accept-Language: fr-FR,fr;q=0.9' --data-binary 'queries=%5Bobject+Object%5D' --compressed --insecure
sjoeboo commented 4 years ago

0.9.1 isn't a version we have released?

our most recent release may fair better on 7 at the moment:

grafana-cli --pluginUrl https://github.com/spotify/spotify-heroic-datasource/releases/download/build-382/spotify-heroic-datasource.zip plugins install spotify-heroic-datasource

(this hasn't been updated on Grafana.com yet).

as I mentioned we internally just starting our Grafana 7 evaluation, so there will be issues/bugs for the immediate future.

coutouly commented 4 years ago

ok i made a mistake sorry i did installation and update with

grafana-cli --pluginUrl https://github.com/spotify/spotify-heroic-datasource/releases/download/build-382/spotify-heroic-datasource.zip plugins install spotify-heroic-datasource

the probleme exist with version after 6.4 in grafana

sjoeboo commented 4 years ago

Hm, could you share more of your plugin/heroic configuration(and heroic version)? I'm not yet able to reproduce that error on a query w/ Grafana 6.5