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

Params in "Params" is not updating when variables changes. #85

Closed
ZuperZee opened this issue Mar 24, 2021 · 2 comments
Closed

Params in "Params" is not updating when variables changes. #85

ZuperZee opened this issue Mar 24, 2021 · 2 comments
Labels
type/feature-request Requested new feature or enhancement

Comments

@ZuperZee
Copy link

When using variables in the "Params" option and change the variable, the query doesn't change.

grafana-json-datasource-params-not-updating.mp4

Param in "Path" panel

image
image

Param in "Params" panel

image
image

Some additional notes

There is no query string added to the datasource setup.
Docker and the API is in a docker container.
image

Grafana version: 7.4.3
Plugin version: 1.0.1

@marcusolsson
Copy link
Contributor

This is likely due to the cache. I can see that you've configured the cache to 5 minutes. Currently, the cache key is set to the URL + the path, but I'm considering adding the params to the cache key as well. It should work for you if you set the cache time to 0s.

@ZuperZee
Copy link
Author

That would be great.

P.S.
It does update when the cache is set to 0s.

@marcusolsson marcusolsson added the type/feature-request Requested new feature or enhancement label Mar 25, 2021
@marcusolsson marcusolsson added this to To do in Grafana Plugins via automation Mar 25, 2021
@marcusolsson marcusolsson moved this from Backlog to In progress in Grafana Plugins Apr 7, 2021
Grafana Plugins automation moved this from In progress to Done Apr 11, 2021
@marcusolsson marcusolsson removed this from Done in Grafana Plugins Sep 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/feature-request Requested new feature or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants