Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide Dashboard Variable Query Support #6

Closed
coutouly opened this issue Feb 1, 2024 · 9 comments · Fixed by #9
Closed

Provide Dashboard Variable Query Support #6

coutouly opened this issue Feb 1, 2024 · 9 comments · Fixed by #9
Assignees
Labels
enhancement New feature or request

Comments

@coutouly
Copy link

coutouly commented Feb 1, 2024

It miss thé Query SQL for variable.

@ppaulweber
Copy link
Member

Dear @coutouly, do you refer to the variable deduction of the Grafana variables? Because the templating of all the scope variables is implemented in the data source backend.

Can you describe your issue in more detail?

@coutouly
Copy link
Author

coutouly commented Feb 2, 2024

In the dashboard WE Can create variable in grafana by queriing thé dattabase.
In a surrealdb dashboard when creating a variable with a Query it IS ont possible to write thé Query

@ppaulweber
Copy link
Member

@coutouly can you clarify what in your context a "surrealdb dashboard" is? Best would be maybe to follow-up on this issue if you can provide some screenshots or a screen recording showcasing the situation.

@coutouly
Copy link
Author

coutouly commented Feb 8, 2024

when i create a variable in the dashboard i want to use a query:
image
but i dont know where to write the query ???
do you understand what i mean .

@ppaulweber
Copy link
Member

@coutouly thank you for this elaborate description and now I know what the exact issue is ... I've already started to implement this functionality where you can then have an additional query field to write SurrealQL to query the contents of the defined variable.

I'll update you ASAP the functionality is implemented.

@ppaulweber ppaulweber self-assigned this Feb 8, 2024
@ppaulweber ppaulweber added the enhancement New feature or request label Feb 8, 2024
@ppaulweber ppaulweber changed the title Variable for dashboard Provide Dashboard Variable Query Support Feb 8, 2024
@coutouly
Copy link
Author

coutouly commented Feb 8, 2024

I am very happy that you do the job for us. Becaus i love surrealdb and use alors grafana.
Thanks in advence.

@ppaulweber
Copy link
Member

ppaulweber commented Feb 8, 2024

@coutouly the feature is already implemented and tested ... I've already started the release process and depending on the publishing process (reviewing etc.) the version v0.3.0 [1] of the plugin should be available soon in the Grafana plugin catalog [2] which includes than the Variable Query support. You can already have a look at the documentation [3] or in the following screencast to see how it works:

[1] https://github.com/fiskaly/grafana.surrealdb/releases/tag/v0.3.0
[2] https://grafana.com/grafana/plugins/fiskaly-surrealdb-datasource/
[3] https://github.com/fiskaly/grafana.surrealdb/blob/v0.3.0/src/README.md#variable-query

variable-query

@ppaulweber
Copy link
Member

FYI: @coutouly version v0.3.0 with the Variable Query support was just published in the Grafana plugin catalog, see: https://grafana.com/grafana/plugins/fiskaly-surrealdb-datasource

Please have a look and if possible provide some feedback ☺️

@coutouly
Copy link
Author

Hello, I try the variable editor and it works great.
thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants