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

Nested variables don't refresh #216

Closed
bode689 opened this issue Dec 7, 2021 · 5 comments
Closed

Nested variables don't refresh #216

bode689 opened this issue Dec 7, 2021 · 5 comments

Comments

@bode689
Copy link

bode689 commented Dec 7, 2021

Hello,

Within my Grafana application (v 8.2.3), it is very useful to nest variables from left to right, in order to let the user filter efficiently.

I've been doing this for a while with InfluxDB datasource without any problem.
Now, I'm integrating other sources using this great JSON API plugin but I'm realizing that nested query variables never update, unless you refresh the entire dashboard.
For example I'd like to use the returned value of variable A as a parameter value of query variable B.
The same query works perfectly if used in a panel and not in a variable.

I haven't found any open issue on this, please correct me if I'm wrong!

Is there any solution or trick to sort this out?

Thank you in advance

@bode689 bode689 changed the title Nested variables Nested variables don't refresh Dec 7, 2021
@ugoleleux
Copy link

Hi,

Same issue for me on Grafana 8.2.6 and 8.3.0

Ugo

@marcusolsson
Copy link
Contributor

This looks like a duplicate of #95.

I haven't been able to figure this out unfortunately. It seems like the plugin doesn't have any control of this (but obviously this works for others).

@ugoleleux
Copy link

Hi,
Thank you for your reply.

The case I opened on the grafana repo has been closed as the problem does not occur with other plugins...
This is a dead end for me

@marcusolsson
Copy link
Contributor

Most likely this is a bug with this plugin. I'm closing this as a duplicate. If you come across any more details that can help, please comment in #95.

@ugoleleux
Copy link

ugoleleux commented Dec 13, 2021

@marcusolsson
I found a new behavior that will help you in your analysis.
I have a variable $name that contains a list of choices.
This variable is used inside a child variable on the Params tab :
image
When I look at the dependency tree, the $name var is not used by $child
image

If I refer $name variable in the Path tab :
image
This time, the dependency tree is well seeing the relation.
image

By doing this little change, my child var is now updated on the fly when I modify the $name.

I hope this will help you to correct this issue :)

Regards
Ugo

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

No branches or pull requests

3 participants