hastic-server
hastic-server copied to clipboard
Datasource time field is not available
When I use elasticsearch as data source. I get following error,
hastic-server-0 hastic-server LEARNING started for xxxx
hastic-server-0 hastic-server query time range: from Fri Mar 06 2020 07:59:26 GMT+0000 (UTC) to Fri Mar 06 2020 08:59:26 GMT+0000 (UTC)
hastic-server-0 hastic-server Error: datasource time field not found
hastic-server-0 hastic-server at /var/www/server/dist/server.js:9:165359
hastic-server-0 hastic-server at Generator.next (
Hey @tuapuikia
What ElasticSearch version are you using?
Please attach screenshot of your metric with "Hastic Info" tab opened, like this:
You can blur sensitive info out if it's necessary
Hi, My Elasticsearch version is 7.6.0. fixed the screenshot.
The error is from datasource library.
https://github.com/CorpGlory/grafana-datasource-kit/blob/772688965bab3fb4df0ed809aabb4129a95de740/src/metrics/elasticsearch_metric.ts#L62
It works if i'm using average data instead of count data. I convert some of my data in ES to integer to resolve this.
@tuapuikia good research! would you share your original and fixed query to elastic? That would help.