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

How do I use an Elasticsearch data source? #26

Open
azizbodal opened this issue Feb 5, 2020 · 5 comments
Open

How do I use an Elasticsearch data source? #26

azizbodal opened this issue Feb 5, 2020 · 5 comments
Labels

Comments

@azizbodal
Copy link

I'm looking to use this plugin in an Elasticsearch data source. How do construct my query? I have my longitude and latitude as separate fields. I've tried to create two queries, one with latitudes and another with longitudes but that crashed the plugin. Any help would be appreciated.

@pR0Ps
Copy link
Owner

pR0Ps commented Feb 27, 2020

In #3 , someone was having a very similar issue with MariaDB. If you haven't already, take a read through there and see if any of the advice in it helps. The comment in there about logging out the data that's received by the plugin might help you as you play around with your queries.

I don't have any experience with Elasticsearch (or it's integration with Grafana) so I don't really have any specific advice for you, sorry. If you end up figuring it out, let me know as I'd like to put an example of it in the README for the next person.

@danielcardinha
Copy link

Hi, I m having the same issues as @azizbodal . Did you guys find any solution? Thanks

@pR0Ps pR0Ps added the question label Aug 29, 2020
@peterjbrammer
Copy link

Hi PR0Ps, just wondering if anyone has managed to display a position from Elasticsearch yet? Best Regards

@arirobinson
Copy link

It seems to work for me if you create 2 queries (one for lat and one for lon). Set the alias to "lat" and "lon" and it should work.
image

@myplatox
Copy link

Hi,

sadly, this solition is not working for me (see my settings below).
I actually suggest a route-map based on the docs/points in the datasource.
Query is fine and replys two dataframes.

i also tried with a geo_point field.

Do you have any ideas how to solve this problem?

Unbenannt

elastic index is about 20k docs.

elastic mapping: "position_lat" : { "type" : "long" }, "position_long" : { "type" : "long" }, "route_point" : { "type" : "geo_point" }

where data is for example:
"position_lat" : "xx.xxxxxxx", "position_long" : "xx.xxxxxxx", "route_point" : { "lat": xx.xxxxxxx, "lon": xx.xxxxxxx }

thanks in advance

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

No branches or pull requests

6 participants