Open jethro-blackstump opened 2 months ago
Apoogies, here is the config file also
grafana:
default:
host: http://x.x.x.x:3000
api_key: ****
grafana-reporter:
# Specifies how often the reporter shall check for newer versions [number of days].
# You may set check-for-updates to 0 to disable
check-for-updates: 1
report-class: GrafanaReporter::Asciidoctor::Report
templates-folder: ./templates
reports-folder: ./reports
report-retention: 24
webservice-port: 8815
# you may want to configure the following webhook callbacks to get informed on certain events
# callbacks:
# all:
# - <<your_callback_url>>
# - ...
# on_before_create:
# - <<your_callback_url>>
# - ...
# on_after_cancel:
# - <<your_callback_url>>
# - ...
# on_after_finish:
# - <<your_callback_url>>
# - ...
default-document-attributes:
imagesdir: ./images
# feel free to add here additional asciidoctor document attributes which are applied to all your templates
Hi @jethro-blackstump, thanks for this very detailed issue report. Looks like you got one :-)
I will investigate and check, if I can fix it.
Greatly appreciated,
Please let me know if you need any further details
Describe the issue A clear and concise description of what the issue is (please provide all logs with
-d DEBUG
). What was the expected behaviour?I'm trying to work out handling of multi-select variables. It seems like they are getting parsed with square brackets in the rendering call.
The GET call shows the variable list as expected:
[2024-10-04T07:54:29.043782 #246586] DEBUG -- : Received request: GET /render?var-template=demo_report&from=now%2Fy&to=now%2Fy&var-site=Clyde%20MSF&var-site=Eastern%20Creek%20Pre-Cast&var-site=Gamuda%20Rosehill&var-unit=Gamuda%20MSF%20%231&var-unit=Sol.%20Gen%201&var-unit=Sol.%20Gen%202.&var-unit=Gamuda%20MSF%20%232 HTTP/1.1
Then it seems like the variables are extracted as arrays in square brackets:
D, [2024-10-04T07:54:29.043871 #246586] DEBUG -- : query_parameters: {"var-template"=>["demo_report"], "from"=>["now/y"], "to"=>["now/y"], "var-site"=>["Clyde MSF", "Eastern Creek Pre-Cast", "Gamuda Rosehill"], "var-unit"=>["Gamuda MSF #1", "Sol. Gen 1", "Sol. Gen 2.", "Gamuda MSF #2"]} I, [2024-10-04T07:54:29.045149 #246586] INFO -- : Report started at 2024-10-04 07:54:29 +0000 I, [2024-10-04T07:54:29.045315 #246586] INFO -- : You are running ruby-grafana-reporter version 0.9.4. D, [2024-10-04T07:54:29.046346 #246586] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"demo_report", "from"=>"now/y", "to"=>"now/y", "var-site"=>["Clyde MSF", "Eastern Creek Pre-Cast", "Gamuda Rosehill"], "var-unit"=>["Gamuda MSF #1", "Sol. Gen 1", "Sol. Gen 2.", "Gamuda MSF #2"]}
When the render call is made, it seems like the variable list is appended in the square bracket format
http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=%5B%22Clyde+MSF%22%2C+%22Eastern+Creek+Pre-Cast%22%2C+%22Gamuda+Rosehill%22%5D&var-unit=%5B%22Gamuda+MSF+%231%22%2C+%22Sol.+Gen+1%22%2C+%22Sol.+Gen+2.%22%2C+%22Gamuda+MSF+%232%22%5D&var-template=demo_report&from=1704067200000&to=1728028468000
-> Decoded
http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=["Clyde MSF", "Eastern Creek Pre-Cast", "Gamuda Rosehill"]&var-unit=["Gamuda MSF #1", "Sol. Gen 1", "Sol. Gen 2.", "Gamuda MSF #2"]&var-template=demo_report&from=1704067200000&to=1728028468000
Which when put into the browser gives:
Everything seems to be right apart from the variable list. If I take the variable list from the get call, it works as expected:
[2024-10-04T07:54:29.043782 #246586] DEBUG -- : Received request: GET /render?var-template=demo_report&from=now%2Fy&to=now%2Fy
&var-site=Clyde%20MSF&var-site=Eastern%20Creek%20Pre-Cast&var-site=Gamuda%20Rosehill&var-unit=Gamuda%20MSF%20%231&var-unit=Sol.%20Gen%201&var-unit=Sol.%20Gen%202.&var-unit=Gamuda%20MSF%20%232
HTTP/1.1http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60
&var-site=%5B%22Clyde+MSF%22%2C+%22Eastern+Creek+Pre-Cast%22%2C+%22Gamuda+Rosehill%22%5D&var-unit=%5B%22Gamuda+MSF+%231%22%2C+%22Sol.+Gen+1%22%2C+%22Sol.+Gen+2.%22%2C+%22Gamuda+MSF+%232%22%5D&var-template=demo_report&from=1704067200000&to=1728028468000
http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-template=demo_report&from=1704067200000&to=1728028468000&var-site=Clyde%20MSF&var-site=Eastern%20Creek%20Pre-Cast&var-site=Gamuda%20Rosehill&var-unit=Gamuda%20MSF%20%231&var-unit=Sol.%20Gen%201&var-unit=Sol.%20Gen%202.&var-unit=Gamuda%20MSF%20%232
When this is put in the browser:
Is there a way to change how the variables are parsed in?
Just as a side note,
It works when 'All' is selected for the filters
http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=All&var-unit=All&var-template=demo_report&from=1704067200000&to=1735689599000
It also works when only 1 variable is selected:
D, [2024-10-04T08:59:12.077769 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=Clyde+MSF&var-unit=Sol.+Gen+2.&var-template=demo_report&from=1704067200000&to=1735689599000 with '' and timeout '60'
Please let me know if you need any further details, Cheers, Jet
Full debug file for reference (recreated so there may be slight differences to the example
I, [2024-10-04T08:56:10.592267 #248796] INFO -- : Server listening on port 8815... D, [2024-10-04T08:56:14.942001 #248796] DEBUG -- : Received request: GET /render?var-template=demo_report&from=now%2Fy&to=now%2Fy&var-site=All&var-unit=All HTTP/1.1 D, [2024-10-04T08:56:14.942143 #248796] DEBUG -- : query_parameters: {"var-template"=>["demo_report"], "from"=>["now/y"], "to"=>["now/y"], "var-site"=>["All"], "var-unit"=>["All"]} I, [2024-10-04T08:56:14.943991 #248796] INFO -- : Report started at 2024-10-04 08:56:14 +0000 I, [2024-10-04T08:56:14.944259 #248796] INFO -- : You are running ruby-grafana-reporter version 0.9.4. I, [2024-10-04T08:56:14.945259 #248796] INFO -- : 1 report(s) in progress: 0% (running 0 secs) D, [2024-10-04T08:56:14.974162 #248796] DEBUG -- : Received request: GET /view_report?report_id=2140 HTTP/1.1 D, [2024-10-04T08:56:14.974237 #248796] DEBUG -- : query_parameters: {"report_id"=>["2140"]} D, [2024-10-04T08:56:15.278006 #248796] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"demo_report", "from"=>"now/y", "to"=>"now/y", "var-site"=>"All", "var-unit"=>"All"} D, [2024-10-04T08:56:15.278152 #248796] DEBUG -- : Template ./templates/demo_report.adoc contains 2 calls of grafana reporter functions. D, [2024-10-04T08:56:15.279663 #248796] DEBUG -- : Processing PanelImageBlockMacro (instance: default, dashboard: ddzu32lr112ioe, panel: 1) D, [2024-10-04T08:56:15.279884 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/frontend/settings with '' and timeout '60' D, [2024-10-04T08:56:15.303672 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:56:15.304870 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/dashboards/uid/ddzu32lr112ioe with '' and timeout '60'
D, [2024-10-04T08:56:15.319075 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:56:15.319993 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/health with '' and timeout '60'
D, [2024-10-04T08:56:15.320914 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:56:15.321218 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=All&var-unit=All&var-template=demo_report&from=1704067200000&to=1728032174000 with '' and timeout '60'
D, [2024-10-04T08:56:17.659352 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:56:17.659897 #248796] DEBUG -- : Processing PanelImageBlockMacro (instance: default, dashboard: ddzu32lr112ioe, panel: 1)
D, [2024-10-04T08:56:17.660416 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=All&var-unit=All&var-template=demo_report&from=1704067200000&to=1735689599000 with '' and timeout '60'
I, [2024-10-04T08:56:19.952161 #248796] INFO -- : 1 report(s) in progress: 100% (running 5 secs)
D, [2024-10-04T08:56:20.039762 #248796] DEBUG -- : Received response #
I, [2024-10-04T08:56:20.127680 #248796] INFO -- : Report creation ended after 6 seconds with status 'finished'
D, [2024-10-04T08:56:23.048971 #248796] DEBUG -- : Received request: GET /view_report?report_id=2140 HTTP/1.1
D, [2024-10-04T08:56:23.049082 #248796] DEBUG -- : query_parameters: {"report_id"=>["2140"]}
D, [2024-10-04T08:56:23.049162 #248796] DEBUG -- : Returning report file ./reports/gf_pdf_20241004-248796-zkzbs3
D, [2024-10-04T08:57:22.067286 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T08:57:22.067397 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T08:57:23.440628 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T08:57:23.440735 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T08:58:23.504448 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T08:58:23.504543 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T08:58:23.505530 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T08:58:23.505633 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T08:59:09.207331 #248796] DEBUG -- : Received request: GET /render?var-template=demo_report&from=now%2Fy&to=now%2Fy&var-site=Clyde%20MSF&var-unit=Sol.%20Gen%202. HTTP/1.1
D, [2024-10-04T08:59:09.207413 #248796] DEBUG -- : query_parameters: {"var-template"=>["demo_report"], "from"=>["now/y"], "to"=>["now/y"], "var-site"=>["Clyde MSF"], "var-unit"=>["Sol. Gen 2."]}
I, [2024-10-04T08:59:09.209614 #248796] INFO -- : Report started at 2024-10-04 08:59:09 +0000
I, [2024-10-04T08:59:09.209722 #248796] INFO -- : You are running ruby-grafana-reporter version 0.9.4.
D, [2024-10-04T08:59:09.209779 #248796] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"demo_report", "from"=>"now/y", "to"=>"now/y", "var-site"=>"Clyde MSF", "var-unit"=>"Sol. Gen 2."}
I, [2024-10-04T08:59:09.209949 #248796] INFO -- : 1 report(s) in progress: 0% (running 0 secs)
D, [2024-10-04T08:59:09.210112 #248796] DEBUG -- : Received request: GET /render?var-template=demo_report&from=now%2Fy&to=now%2Fy&var-site=Clyde%20MSF&var-unit=Sol.%20Gen%202. HTTP/1.1
D, [2024-10-04T08:59:09.210207 #248796] DEBUG -- : query_parameters: {"var-template"=>["demo_report"], "from"=>["now/y"], "to"=>["now/y"], "var-site"=>["Clyde MSF"], "var-unit"=>["Sol. Gen 2."]}
D, [2024-10-04T08:59:09.210137 #248796] DEBUG -- : Template ./templates/demo_report.adoc contains 2 calls of grafana reporter functions.
I, [2024-10-04T08:59:09.211506 #248796] INFO -- : Report started at 2024-10-04 08:59:09 +0000
I, [2024-10-04T08:59:09.211914 #248796] INFO -- : You are running ruby-grafana-reporter version 0.9.4.
D, [2024-10-04T08:59:09.212616 #248796] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"demo_report", "from"=>"now/y", "to"=>"now/y", "var-site"=>"Clyde MSF", "var-unit"=>"Sol. Gen 2."}
D, [2024-10-04T08:59:09.212487 #248796] DEBUG -- : Processing PanelImageBlockMacro (instance: default, dashboard: ddzu32lr112ioe, panel: 1)
D, [2024-10-04T08:59:09.212947 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/frontend/settings with '' and timeout '60'
D, [2024-10-04T08:59:09.212754 #248796] DEBUG -- : Template ./templates/demo_report.adoc contains 2 calls of grafana reporter functions.
D, [2024-10-04T08:59:09.214382 #248796] DEBUG -- : Processing PanelImageBlockMacro (instance: default, dashboard: ddzu32lr112ioe, panel: 1)
D, [2024-10-04T08:59:09.214579 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/frontend/settings with '' and timeout '60'
D, [2024-10-04T08:59:09.228183 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:59:09.229084 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/dashboards/uid/ddzu32lr112ioe with '' and timeout '60'
D, [2024-10-04T08:59:09.229518 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:59:09.230380 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/dashboards/uid/ddzu32lr112ioe with '' and timeout '60'
D, [2024-10-04T08:59:09.241874 #248796] DEBUG -- : Received request: GET /view_report?report_id=2240 HTTP/1.1
D, [2024-10-04T08:59:09.241926 #248796] DEBUG -- : query_parameters: {"report_id"=>["2240"]}
D, [2024-10-04T08:59:09.261277 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:59:09.261895 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/health with '' and timeout '60'
D, [2024-10-04T08:59:09.262689 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:59:09.262923 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=Clyde+MSF&var-unit=Sol.+Gen+2.&var-template=demo_report&from=1704067200000&to=1728032348000 with '' and timeout '60'
D, [2024-10-04T08:59:09.266973 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:59:09.267417 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/health with '' and timeout '60'
D, [2024-10-04T08:59:09.268192 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:59:09.268340 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=Clyde+MSF&var-unit=Sol.+Gen+2.&var-template=demo_report&from=1704067200000&to=1728032348000 with '' and timeout '60'
D, [2024-10-04T08:59:11.915153 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:59:11.915665 #248796] DEBUG -- : Processing PanelImageBlockMacro (instance: default, dashboard: ddzu32lr112ioe, panel: 1)
D, [2024-10-04T08:59:11.916163 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=Clyde+MSF&var-unit=Sol.+Gen+2.&var-template=demo_report&from=1704067200000&to=1735689599000 with '' and timeout '60'
D, [2024-10-04T08:59:12.076152 #248796] DEBUG -- : Received response #
D, [2024-10-04T08:59:12.076734 #248796] DEBUG -- : Processing PanelImageBlockMacro (instance: default, dashboard: ddzu32lr112ioe, panel: 1)
D, [2024-10-04T08:59:12.077769 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=Clyde+MSF&var-unit=Sol.+Gen+2.&var-template=demo_report&from=1704067200000&to=1735689599000 with '' and timeout '60'
I, [2024-10-04T08:59:14.210336 #248796] INFO -- : 2 report(s) in progress: 100% (running 5 secs), 100% (running 4 secs)
D, [2024-10-04T08:59:14.671144 #248796] DEBUG -- : Received response #
I, [2024-10-04T08:59:14.752985 #248796] INFO -- : Report creation ended after 5 seconds with status 'finished'
D, [2024-10-04T08:59:14.758382 #248796] DEBUG -- : Received response #
I, [2024-10-04T08:59:14.817171 #248796] INFO -- : Report creation ended after 5 seconds with status 'finished'
D, [2024-10-04T08:59:25.641089 #248796] DEBUG -- : Received request: GET /view_report?report_id=2240 HTTP/1.1
D, [2024-10-04T08:59:25.641165 #248796] DEBUG -- : query_parameters: {"report_id"=>["2240"]}
D, [2024-10-04T08:59:25.641243 #248796] DEBUG -- : Returning report file ./reports/gf_pdf_20241004-248796-os6ufw
D, [2024-10-04T08:59:25.641592 #248796] DEBUG -- : Received request: GET /view_report?report_id=2240 HTTP/1.1
D, [2024-10-04T08:59:25.641624 #248796] DEBUG -- : query_parameters: {"report_id"=>["2240"]}
D, [2024-10-04T08:59:25.641659 #248796] DEBUG -- : Returning report file ./reports/gf_pdf_20241004-248796-os6ufw
D, [2024-10-04T08:59:55.029808 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T08:59:55.029954 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T08:59:55.031089 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T08:59:55.031143 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T09:01:26.091469 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T09:01:26.091562 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T09:01:26.091790 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T09:01:26.092688 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T09:02:26.144083 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T09:02:26.144196 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T09:02:26.148972 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T09:02:26.149251 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T09:03:26.211018 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T09:03:26.211136 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T09:03:26.212107 #248796] DEBUG -- : Webserver EOFError: end of file reached
D, [2024-10-04T09:03:26.212196 #248796] DEBUG -- : GrafanaReporterError: Request '' calls an unknown path for this webservice.
D, [2024-10-04T09:04:10.552560 #248796] DEBUG -- : Received request: GET /render?var-template=demo_report&from=now%2Fy&to=now%2Fy&var-site=Clyde%20MSF&var-site=Eastern%20Creek%20Pre-Cast&var-site=Gamuda%20Rosehill&var-unit=Sol.%20Gen%201&var-unit=Sol.%20Gen%202.&var-unit=Gamuda%20MSF%20%233&var-unit=Gamuda%20MSF%20%232&var-unit=Gamuda%20MSF%20%231 HTTP/1.1
D, [2024-10-04T09:04:10.552649 #248796] DEBUG -- : query_parameters: {"var-template"=>["demo_report"], "from"=>["now/y"], "to"=>["now/y"], "var-site"=>["Clyde MSF", "Eastern Creek Pre-Cast", "Gamuda Rosehill"], "var-unit"=>["Sol. Gen 1", "Sol. Gen 2.", "Gamuda MSF #3", "Gamuda MSF #2", "Gamuda MSF #1"]}
I, [2024-10-04T09:04:10.554698 #248796] INFO -- : 1 report(s) in progress: 0% (running 0 secs)
I, [2024-10-04T09:04:10.554858 #248796] INFO -- : Report started at 2024-10-04 09:04:10 +0000
I, [2024-10-04T09:04:10.554907 #248796] INFO -- : You are running ruby-grafana-reporter version 0.9.4.
D, [2024-10-04T09:04:10.554984 #248796] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"demo_report", "from"=>"now/y", "to"=>"now/y", "var-site"=>["Clyde MSF", "Eastern Creek Pre-Cast", "Gamuda Rosehill"], "var-unit"=>["Sol. Gen 1", "Sol. Gen 2.", "Gamuda MSF #3", "Gamuda MSF #2", "Gamuda MSF #1"]}
D, [2024-10-04T09:04:10.555084 #248796] DEBUG -- : Template ./templates/demo_report.adoc contains 2 calls of grafana reporter functions.
D, [2024-10-04T09:04:10.555824 #248796] DEBUG -- : Processing PanelImageBlockMacro (instance: default, dashboard: ddzu32lr112ioe, panel: 1)
D, [2024-10-04T09:04:10.555987 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/frontend/settings with '' and timeout '60'
D, [2024-10-04T09:04:10.576553 #248796] DEBUG -- : Received response #
D, [2024-10-04T09:04:10.577635 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/dashboards/uid/ddzu32lr112ioe with '' and timeout '60'
D, [2024-10-04T09:04:10.585117 #248796] DEBUG -- : Received request: GET /view_report?report_id=2320 HTTP/1.1
D, [2024-10-04T09:04:10.585214 #248796] DEBUG -- : query_parameters: {"report_id"=>["2320"]}
D, [2024-10-04T09:04:10.592247 #248796] DEBUG -- : Received response #
D, [2024-10-04T09:04:10.592973 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/api/health with '' and timeout '60'
D, [2024-10-04T09:04:10.594101 #248796] DEBUG -- : Received response #
D, [2024-10-04T09:04:10.594467 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=%5B%22Clyde+MSF%22%2C+%22Eastern+Creek+Pre-Cast%22%2C+%22Gamuda+Rosehill%22%5D&var-unit=%5B%22Sol.+Gen+1%22%2C+%22Sol.+Gen+2.%22%2C+%22Gamuda+MSF+%233%22%2C+%22Gamuda+MSF+%232%22%2C+%22Gamuda+MSF+%231%22%5D&var-template=demo_report&from=1704067200000&to=1728032649000 with '' and timeout '60'
D, [2024-10-04T09:04:12.763791 #248796] DEBUG -- : Received response #
D, [2024-10-04T09:04:12.764246 #248796] DEBUG -- : Processing PanelImageBlockMacro (instance: default, dashboard: ddzu32lr112ioe, panel: 1)
D, [2024-10-04T09:04:12.764834 #248796] DEBUG -- : Requesting http://x.x.x.x:3000/render/d-solo/ddzu32lr112ioe?panelId=1&fullscreen=true&theme=light&timeout=60&var-site=%5B%22Clyde+MSF%22%2C+%22Eastern+Creek+Pre-Cast%22%2C+%22Gamuda+Rosehill%22%5D&var-unit=%5B%22Sol.+Gen+1%22%2C+%22Sol.+Gen+2.%22%2C+%22Gamuda+MSF+%233%22%2C+%22Gamuda+MSF+%232%22%2C+%22Gamuda+MSF+%231%22%5D&var-template=demo_report&from=1704067200000&to=1735689599000 with '' and timeout '60'
D, [2024-10-04T09:04:14.762035 #248796] DEBUG -- : Received response #
I, [2024-10-04T09:04:14.823421 #248796] INFO -- : Report creation ended after 4 seconds with status 'finished'
D, [2024-10-04T09:04:17.683971 #248796] DEBUG -- : Received request: GET /view_report?report_id=2320 HTTP/1.1
D, [2024-10-04T09:04:17.684084 #248796] DEBUG -- : query_parameters: {"report_id"=>["2320"]}
D, [2024-10-04T09:04:17.684176 #248796] DEBUG -- : Returning report file ./reports/gf_pdf_20241004-248796-wr4o2h
Application call
Template file (if applicable)
Configuration file
root@blackstumpportal:~/templates# cat demo_report.adoc = Demo report
Created by
+ruby-grafana-reporter+
version 0.9.4== Examples
grafana_panel_image::1[dashboard="ddzu32lr112ioe",from="now/y",to="now"]
grafana_panel_image::1[dashboard="ddzu32lr112ioe",var-site,var-unit]
Environment (please complete the following information):