I have created a panel plugin (chat-plugin). It is connected to a backend, that can update dashboard or panels on the dashboard. It does this through the JSON model of each dashboard. At the end the chat-plugin receives a message, that the panel was updated. As it also allows changes on the dashboard the plugin is integrated in, it should reload the JSON model of the dashboard. I tried multiple solutions, but didn’t work. Can somebody help me?
The soltuions I’ve tried:
- Listening to the websocket of Grafana live. From my understanding this does not work as the websocket is build for UI iniated changed and won’t be triggered from changes via the API.
- Trying to to call window.location.reload() in the function display_new_message of the panel plugin.
Thank you in advance for your help!