IzakMarais / reporter

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

CLI Version not handlling "To" dates #328

Closed sholinaty closed 2 years ago

sholinaty commented 2 years ago

calling the command line with -cmd_ts from=now-7d/d gives you NOW to 7days ago at 0000

from the example code, there's a URL Param that defaults to from=now-3h&to=now

Calling the command line with -cmd_ts from=now-8d/d&to=now-1d/d still gives 8d to Now

it seems there is no way to get a report generated with a "TO" filter via CLI.

sholinaty commented 2 years ago

It appears that via the Command Line, you must pass this as an escaped ampersand.

-cmd_ts from=now-1M/d\&to=now/d
^^ this is successful per the CLI.