Fill drop down for a variable with data from Quickwit

I’m currently evaluating Quickwit as our data store and search engine for logs. Quickwit is registered as a Grafana data source and the access works in general. But I’m not able to configure a dashboard:

When adding a variable / drop down to the dashboard I have to specify a query. The query is supposed to fill the drop down, so that I can select a value for the variable and can be used for further filtering. I did this successfully for other data sources.

In the case of Quickwit it looks like Grafana cannot make sense out of the result. I don’t get an error, but the drop down stays empty. I tested the query in isolation and it works.

Grafana probably cannot make sense out of the JSON format of the Quickwit. I have no idea how to tell Grafana how to pick data from the result JSON. As far as I can tell I cannot change the Quickwit result format.

Any hint how to close that gap would be highly appreciated. Any hint how to debug what’s going on would also be appreciated. I’m rather new to this and at the moment is “just does not work” and I’m guessing why. Logs would be nice, but I have no clue where to get them!?

@achim6

What does the json data coming from quickwit look like and which portions of it do you want to use as source of the variable

Hey @achim6,

Quickwit plugin isn’t Grafana Team Developed, it seems that it’s developed by Quickwit team and I would advise you to search their Docs and Repositories: GitHub - quickwit-oss/quickwit-datasource: Quickwit data source for Grafana.

Quickly looking at the repository issues, seems like the query for variables should be a Lucene Terms JSON query as below:

Further questions really should be done to the developer of the plug-in (there’s even 3 issues opened for variables at the repository).

Hope it helps.

1 Like