IzakMarais / reporter

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

Allow template variables to be specified on the cmd line #182

Open riyu94 opened 4 years ago

riyu94 commented 4 years ago

Hi Izak,

This grafana pdf generator is awesome. Only significant thing missing are the selected template variables (by default).

I am using command line options: grafana-reporter Can we add an additional line below time selected, showing template variables selected (by default). This would make it perfect to be used.

Greta help. Thank you. :)

IzakMarais commented 4 years ago

You have indeed identified a difference between the (newish) command line mode functionality and the (original) http service functionality. I don't use command line mode myself, but I would be open to accepting a PR to solve this.

rogerbloise commented 4 years ago

Is there some way to input the variable parameter in command line, like inside another query (timespan, API token...) I'm asking because I really need this option and I don't know anything about GO.

IzakMarais commented 3 years ago

@rogerbloise , this is not supported yet. I currently have no plans to add it myself.

As a workaround, you can run the service in the default web-server mode and script using curl.