Grafana Plugin - React to variable changing

Hi, apologies if this has been asked before, but I am writing a simple panel plugin to display and react to the value of a dashboard variable.

I have a working prototype, but the variable value is only reloaded when the page is first loaded or the refresh button on the top right of the page is clicked. (Because of the amount of other data on the page I don’t really want to have auto-refresh enabled)

Is there a way to subscribe, or listen for an event when a variable is changed? Or do you simply have to poll the variable value from within the plugin?

Other standard panels will update their query/displayed values on a variable change - so it seems like it should be possible somehow.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.