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 · 3 comments
Closed

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

ZuperZee opened this issue Mar 24, 2021 · 3 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
@libeilin
Copy link

libeilin commented Nov 22, 2024

https://github.com/user-attachments/assets/91722c79-f8be-4712-953a-b1231a091d82
https://github.com/user-attachments/assets/edb867cb-805e-42c8-b476-beea839f6517

Hi, I have encountered two issues here. One is that modifying the cache time does not take effect, and the other is that when changing the variable value, Grafana does not reissue the query request.

Grafana version: 7.5.4
Plugin version: 1.0.0

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

3 participants