-
Notifications
You must be signed in to change notification settings - Fork 32
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
Dependant variable not working #182
Comments
Hi, @barsdeveloper ! |
@unflag Do you think it'll be hard to implement? I have some free time now. |
Hello, any update on this issue? Thanks. |
@HadesArchitect It is the subject to research. I am sure there is a way since the prometheus datasource support template variables. I believe it has to be done somewhere in plugins frontend, because backend resolves variables independently. Probable, it would be better to look into existing plugins(e.g. prometheus) first. |
@HadesArchitect Any update or any other way to do it? |
Hello, I've been trying for a long time to make setup a variable whose query depends on another variable and couldn't. The only explanation I have is that there is a bug somewhere.
This is my table
Please notice I have a partition key which is composed of two keys: model_instrument and maturity. My temporal variable is: as_of.
Now I want to show in Grafana graphs that depend on the pair (model_instrument, maturity) which must be selectable through a dropdown and this would be my parameter for the queries.
There are multiple problems with this. First is that I don't know how to return a pair or tuple for variables. The ideal query to get all the parameter values would be:
It returns results like this:
Now if I define a variable, it expects to get two columns: one is the value and one is the text. My query would return 3, I can't make the value a pair or tuple. I came up with a work around leveraging the functions from ScyllaDB (let me know if you have a better solution for this):
So I changed and now I have two variables, first query is be the following (products):
and second query is:
But this does not work, I always get an error: Error updating options: JSON.parse: unexpected end of data at line 1 column 1 of the JSON data.
Do you have a solution: I can either keep the two variables separated OR I can keep one variable but in that case I need to extract the first part of the concatenation (and this seems to be impossible to do in Grafana).
The text was updated successfully, but these errors were encountered: