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

How to manipulate variables ? #357

Open
Sopcan opened this issue Nov 24, 2023 · 5 comments
Open

How to manipulate variables ? #357

Sopcan opened this issue Nov 24, 2023 · 5 comments

Comments

@Sopcan
Copy link

Sopcan commented Nov 24, 2023

Hello,
I am creating templates for my reports.
I saw that the values ​​of the dashboard filters can be retrieved in [[.VariableValues]] but with that I retrieve a string with all the values ​​separated by commas.

Is there a way to get a pair of "label":"values" from the filters?

@chen0218ok
Copy link

Hi, I have the same issue, how did you solve it?

@Sopcan
Copy link
Author

Sopcan commented Feb 27, 2024

Hi, sorry I didn't find a solution

@KishoreKrishnasamy
Copy link

Hi, even I have the same issue, is there a possibility to manipulate / access the variables from the dasboard such that I can customize the template and have my own style of report ?

@chen0218ok
Copy link

Hi, even I have the same issue, is there a possibility to manipulate / access the variables from the dasboard such that I can customize the template and have my own style of report ?

Yes, you can get variable value from dashboard / datasource

@mahendrapaipuri
Copy link

@Sopcan You can get variables with format "label":"values" with new reporter app that integrates into Grafana API as a plugin app. Here is a sample report generated by the reporter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants