Understanding QueryVariables in OpenObserve Dashboard v0.5.1

TLDR Gaby questioned the functionality of QueryVariables in the OpenObserve dashboard. Kirtan explained the use and requested feedback to improve. Gaby created an issue for enhancements.

Photo of Gaby
Gaby
Mon, 17 Jul 2023 22:33:12 UTC

What's the purpose of the QueryVariables in the dashboard settings for v0.5.1 ? After adding one and selecting a value nothing happens :thinking_face: There's also only like 10-15 values, while the data has over 100

Photo of Kirtan
Kirtan
Tue, 18 Jul 2023 04:26:42 UTC

Once you add the variables, you can use that variables in the queries. So for an example, if you add the variable with name `namespace` you can add a where clause in a query with something like this `where namespace = '$namespace'` $namespace will be replaced with the value selected in the dashboard. You can refer to this issue:

Photo of Kirtan
Kirtan
Tue, 18 Jul 2023 04:28:09 UTC

For the missing values, can you share anything that with and without variable, what is the difference you are getting?

Photo of Gaby
Gaby
Tue, 18 Jul 2023 05:04:56 UTC

Ohhh I see, Why isn't the `where clause` added automatically to each Panel? That's the way Kibana does it. I currently have like 8-12 panels, I will have to modify each one by adding custom queries to even try this out, this is not very UX friendly. I currently have a test environment with +100 containers sending data, when adding the QueryVariable to the dashboard only like 10-15 values show up, there's no way to type/search on that dropdown.

Photo of Kirtan
Kirtan
Tue, 18 Jul 2023 06:36:12 UTC

Thanks for the feedback, we are just getting started on this. We can definitely improve on that part. Can you create an issue for this?

Photo of Gaby
Gaby
Tue, 18 Jul 2023 11:19:59 UTC

Will do, thanks!

Photo of Gaby
Gaby
Wed, 19 Jul 2023 01:14:37 UTC

Submitted: