IzakMarais / reporter

Service that generates a PDF report from a Grafana dashboard
Apache License 2.0
946 stars 304 forks source link

How to manipulate variables ? #357

Open Sopcan opened 7 months ago

Sopcan commented 7 months ago

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 commented 5 months ago

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

Sopcan commented 4 months ago

Hi, sorry I didn't find a solution

KishoreKrishnasamy commented 4 months ago

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 commented 4 months ago

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 commented 3 months ago

@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