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

Issues with ElasticSearch Datasource #29

Closed
pvillarragut opened this issue Jul 21, 2016 · 4 comments
Closed

Issues with ElasticSearch Datasource #29

pvillarragut opened this issue Jul 21, 2016 · 4 comments
Assignees
Labels
Milestone

Comments

@pvillarragut
Copy link

When I make a query to eleasticsearch that returns more thant one result, worldmap panel doesn't showns anything. We are working with worldmap-panel v0.0.13 and Elasticsearch 1.5.

This is request payload of the query:

{"search_type":"count","ignore_unavailable":true,"index":["producers-2016-07"]}
{"size":0,"query":{"filtered":{"query":{"query_string":{"analyze_wildcard":true,"query":"*"}},"filter":{"bool":  {"must":[{"range":{"date":{"gte":"1468995780196","lte":"1469082180196"}}}]}}}},"aggs":{"4":{"terms":{"field":"hw_hash","size":10,"order":{"_term":"asc"}},"aggs":{"3":{"geohash_grid":{"field":"location","precision":7},"aggs":{}}}}}}

And this the response of Elasticsearch server:

{"responses":[{"took":2,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1648,"max_score":0.0,"hits":[]},"aggregations":{"4":{"doc_count_error_upper_bound":0,"sum_other_doc_count":253,"buckets":[{"key":"131219615200319bfebfbff000306e4","doc_count":649,"3":{"buckets":[{"key":"sp37rnp","doc_count":649}]}},{"key":"140222153100206bfebfbff000306e4","doc_count":25,"3":{"buckets":[{"key":"sp37rnp","doc_count":25}]}},{"key":"140323884200166bfebfbff000306c3","doc_count":633,"3":{"buckets":[{"key":"sp37rnp","doc_count":633}]}},{"key":"1mgqr72cn129636580009bfebfbff000506e3","doc_count":24,"3":{"buckets":[{"key":"9q5f7v8","doc_count":24}]}},{"key":"2mcvbb2cn722005ag00jebfebfbff000306f2","doc_count":3,"3":{"buckets":[{"key":"u173zt0","doc_count":3}]}},{"key":"3sbys22cn7220045f002cbfebfbff000306e4","doc_count":24,"3":{"buckets":[{"key":"sp37rnp","doc_count":24}]}},{"key":"5jmwjd2cn7220062r005cbfebfbff000306f2","doc_count":28,"3":{"buckets":[{"key":"9q5f7v8","doc_count":28}]}},{"key":"cdltg62cn7220055l01n6bfebfbff000306f2","doc_count":4,"3":{"buckets":[{"key":"sp37rnp","doc_count":4}]}},{"key":"cqnql82cn722005a500m5bfebfbff000306f2","doc_count":1,"3":{"buckets":[{"key":"sp37rnp","doc_count":1}]}},{"key":"g375hc2cn1296366i0002bfebfbff000506e3","doc_count":4,"3":{"buckets":[{"key":"9q5f7v8","doc_count":4}]}}]}}}]}

Otherwise if I make a request that returns only one geohash result it shows correctly on map . This is the elasticsearch response that works :

{"responses":[{"took":10,"timed_out":false,"_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":1,"max_score":0.0,"hits":[]},"aggregations":{"4":{"doc_count_error_upper_bound":0,"sum_other_doc_count":0,"buckets":[{"key":"1mgqr72cn129636580009bfebfbff000506e3","doc_count":1,"3":{"buckets":[{"key":"9q5f7v8","doc_count":1}]}}]}}}]}
@pvillarragut
Copy link
Author

In javascript the console shows this error:

leaflet.js:7 Error: attribute d: Expected number, "M944,NaNANaN,NaN,0,1,…".*

@pvillarragut
Copy link
Author

Seems that is a bug when "Min Circle Size" or "Max Circle Size" are null values. When I define this values the map shows the points correctly

@daniellee daniellee added the bug label Jul 29, 2016
@daniellee daniellee self-assigned this Jul 29, 2016
@daniellee
Copy link
Contributor

I can add validation for this but I'm wondering why you would have empty values for the the Circle Size?

@pvillarragut
Copy link
Author

There is no need to have empty values on Circle Size fields, but testing the worldmap panel I deleted the values in this fields and I noticied that this produce an Javascript errors.

Thank's for this great grafana plugin!

@daniellee daniellee added this to the 0.0.16 milestone Oct 30, 2016
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

2 participants