Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comma before .es(*) #11

Open
zurdofio opened this issue Apr 17, 2018 · 2 comments
Open

Comma before .es(*) #11

zurdofio opened this issue Apr 17, 2018 · 2 comments

Comments

@zurdofio
Copy link

Hi, Im trying to setup timelion with grafana. But I get the following error

"Error: Expected: "$" @ character undefined"

If I check with Query inspector I can see a "comma" before the query and I think is the reason of the error. I don´t know how to remove it.

sheet [ ",.es(*)" ]

I have installed Grafana 5.0.4 and 4.6.3, same results. Im using Kibana 5.6.2 and I have changed kbn-version in datasource.js

Thanks very much
Martin

@gbrian
Copy link
Owner

gbrian commented Apr 19, 2018

Hi @zurdofio ,

If you have multiple queries, split into multiple metrics on grafana. If not, just remove the ","
Can you post an screenshot?

@zurdofio
Copy link
Author

Hi @gbrian

Antes que nada Muchas Gracias por tu respuesta!!

Veo que eres de España (yo de Argentina). A si que hago switch a español si te parece.

la situación es la siguiente. Cuando ejecuto la consulta me agrega la coma delante de la misma, dando un error de sintaxis.

Haciendo debug del código encontré un join que es la causa de esta coma que aparece delante del query. El cambio que realice para solucionarlo fue el siguiente:

antes:
sheet: _.map(intervalGroups[key], target => [variables, target.target].join(","))

despues:
sheet: _.map(intervalGroups[key], target => [variables, target.target].join(""))

No tengo experiencia el javascript, por lo tanto no tengo bien claro la consecuencia de modificar esto, no obstante, resolvió el inconveniente en mi caso.

Muchas Gracias
Saludos
Martin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants