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

Exporting scenes app as panel plugin, variables in dashboard are not available when panel renders #684

Open
LLKCoder opened this issue Apr 10, 2024 · 1 comment
Labels
type/enhancement New feature or request

Comments

@LLKCoder
Copy link

Hi, i want to use grafana plugin tools to develop a functionally enhanced grafana log panel plugin, but grafana plugin tools do not have an interface to directly obtain the log panel. I used the PanelBuilders.logs() of grafana scene to obtain the log panel
截屏2024-04-10 09 52 35

and exported it as a panel plugin (named custom-log).
截屏2024-04-10 09 54 26

A problem occurred when I added custom-log to the dashboard: when the custom-log panel was rendered, the values ​​of all variables in the current dashboard were unavailable, and the variables in the query statements of other panels under the same dashboard were all unavailable. like:
dashboard has a variables, named param, value is 123, use a query to fetch http://xxxx?param=$param, the query url is just http://xxxx?param=$param, $param will not transfrom to 123.
Thank you very much for answering my question

@torkelo
Copy link
Member

torkelo commented Apr 17, 2024

This is not supported yet, should be able to support this in the future

@torkelo torkelo added the type/enhancement New feature or request label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants