marcusolsson / grafana-gantt-panel

A panel plugin for Grafana to visualize Gantt charts.
Apache License 2.0
26 stars 12 forks source link

Elasticsearch Datasource #2

Closed vaughanbrittonsage closed 3 years ago

vaughanbrittonsage commented 3 years ago

Hi, I am unable to select any other field for start/end time than the configured @timestamp field for the datasource even though other date fields exist in the returned query data. I was wondering if this is supported for elasticsearch?

My data contains fields for:

{
    "@timestamp": .....,
    "StartTime": .........,
    "EndTime": .........
}

All are a datatype of date in the elasticsearch index. The start/end time fields are epoch millisecond precision timestamps but the data also contains other fields that are ISO datetime values and I get no option to select any other field. It only seems to allow me to select whatever field has been specified in the data source configuration as the timestamp field.

Thanks

marcusolsson commented 3 years ago

Thank you for reporting! It seems like some of the older data sources don't properly return time fields. I'll add the option to select string and number fields as well that will be converted. Stay tuned!

marcusolsson commented 3 years ago

I've published v0.2.0 which allows you to use string and number fields as time. Hopefully that will solve your issue, otherwise let me know!