quickwit-oss / quickwit-datasource

Quickwit data source for Grafana
GNU Affero General Public License v3.0
41 stars 10 forks source link

Issue #4: timestamp field #38

Closed idrissneumann closed 8 months ago

idrissneumann commented 9 months ago

At this stage, the fields have been removed from the configuration but we get a 500 error when saving the datasource:

Screenshot 2023-12-08 at 17 03 50
grafana-quickwit-datasource  | logger=context userId=1 orgId=1 uname=admin t=2023-12-08T16:03:20.796039756Z level=error msg="Failed to call resource" error="failed to receive call resource response: rpc error: code = Unknown desc = timeField cannot be cast to string" traceID=
grafana-quickwit-datasource  | logger=context userId=1 orgId=1 uname=admin t=2023-12-08T16:03:20.796109172Z level=error msg="Request Completed" method=GET path=/api/datasources/uid/de409a66-8a71-46d9-8977-683699933660/resources/indexes/yoi status=500 remote_addr=192.168.247.1 time_ms=14 duration=14.25399ms size=184 referer=http://localhost:3000/connections/datasources/edit/de409a66-8a71-46d9-8977-683699933660 handler=/api/datasources/uid/:uid/resources/*
Screenshot 2023-12-08 at 17 05 29

We need to proxify the /describe endpoint from quickwit in the datasource backend.

idrissneumann commented 8 months ago

At this stage, seems ok:

Screenshot 2023-12-14 at 10 46 04

Will test if there's some regression on the search

idrissneumann commented 8 months ago

Regressions tests ok:

Screenshot 2023-12-14 at 11 07 52
fmassot commented 8 months ago

I get a 500 if the index does not exist Screenshot from 2023-12-15 15-33-32

idrissneumann commented 8 months ago

I get a 500 if the index does not exist !

@fmassot It's fixed with 022d331db027d8ab5d31fe1275478a1f2b7528b5

Screenshot 2023-12-16 at 13 55 16
idrissneumann commented 8 months ago

Can we add a few tests on the backend side? This will really help to sleep at night :)

It's done :)

idrissneumann commented 8 months ago

Last status check, still working great:

Screenshot 2023-12-28 at 13 11 44
grafana-quickwit-datasource  | logger=plugin.quickwit-quickwit-datasource t=2023-12-28T12:11:07.21707582Z level=info msg="Calling quickwit endpoint: http://host.docker.internal:7280/api/v1/indexes/yoii"
grafana-quickwit-datasource  | logger=plugin.quickwit-quickwit-datasource t=2023-12-28T12:11:07.633917111Z level=info msg="Found timestampFieldName = yo.timestamp, timestampFieldFormat = rfc3339"