Closed BigMarioss closed 2 years ago
Let's first make it run and then discuss the rest:
1) Please check what happens, when you try calling the reporter from command line as stated: ˋ/usr/bin/ruby2.7 /usr/local/bin/ruby-grafana-reporter -t demo_report -o demo_report.pdfˋ Maybe you can also add ˋ-d DEBUGˋ to get some more details.
2) It looks like the creation of the demo template somehow failed. Would you mind sharing the ˋdemo_report.adocˋ template here?
3) Creating a template for a specific dashboard currently means, that you have to define an own template for this dashboard for the desired content. Let's come back to that maybe later, if you still need some support.
Sure. I enabled debug mode, here it is the output:
user@srv:/home# /usr/bin/ruby2.7 /usr/local/bin/ruby-grafana-reporter -t demo_report -o demo_report.pdf -d DEBUG
I, [2021-09-17T09:24:48.719014 #300689] INFO -- : Report started at 2021-09-17 09:24:48 +0200
D, [2021-09-17T09:24:48.719190 #300689] DEBUG -- : Document attributes: {"convert-backend"=>"pdf", "imagesdir"=>"./images", "var-template"=>"demo_report"}
D, [2021-09-17T09:24:48.720104 #300689] DEBUG -- : Template ./templates/demo_report.adoc contains 0 calls of grafana reporter functions.
I, [2021-09-17T09:24:49.160126 #300689] INFO -- : Report creation ended after 1 seconds with status 'finished'
And this is the "demo_report.adoc" file:
= Demo report
Created by `+ruby-grafana-reporter+` version 0.4.5
== Examples
=== AlertsTableIncludeProcessor
No example found for GrafanaReporter::Asciidoctor::AlertsTableIncludeProcessor in the dashboards.
=== AnnotationsTableIncludeProcessor
No example found for GrafanaReporter::Asciidoctor::AnnotationsTableIncludeProcessor in the dashboards.
=== PanelImageBlockMacro
No example found for GrafanaReporter::Asciidoctor::PanelImageBlockMacro in the dashboards.
=== PanelImageInlineMacro
No example found for GrafanaReporter::Asciidoctor::PanelImageInlineMacro in the dashboards.
=== PanelPropertyInlineMacro
No example found for GrafanaReporter::Asciidoctor::PanelPropertyInlineMacro in the dashboards.
=== PanelQueryTableIncludeProcessor
No example found for GrafanaReporter::Asciidoctor::PanelQueryTableIncludeProcessor in the dashboards.
=== PanelQueryValueInlineMacro
No example found for GrafanaReporter::Asciidoctor::PanelQueryValueInlineMacro in the dashboards.
=== SqlTableIncludeProcessor
No example found for GrafanaReporter::Asciidoctor::SqlTableIncludeProcessor in the dashboards.
=== SqlValueInlineMacro
No example found for GrafanaReporter::Asciidoctor::SqlValueInlineMacro in the dashboards.
=== ShowHelpIncludeProcessor
No example found for GrafanaReporter::Asciidoctor::ShowHelpIncludeProcessor in the dashboards.
=== ShowEnvironmentIncludeProcessor
No example found for GrafanaReporter::Asciidoctor::ShowEnvironmentIncludeProcessor in the dashboards.
Ok, here some observations:
1) The good thing is, that the reporter can properly create the report from command line. Anyway the webservice does not work, which might be either a network configuration issue, or something with the reporter. To make sure, that it's not the reporter, please try running the reporter again with -d DEBUG
, but now as webservice, i.e. without the -t
option and try calling again http://172.16.2.200:8815/render?var-template=demo_report
Please post the reporter log output here.
2) Though the reporter recognized your grafana dashboards, it was unable to find panels for the demo report. This leaves me with some questions:
Best regards
Closing because of missing feedback. If you have any news, feel free to reopen
Hi, I have a Grafana instance installed on Ubuntu Server 20.04 (machine IP: 172.16.2.200:3000). I installed ruby-grafana-reporter using the wizard config file but when I go to _http://172.16.2.200:8815/render?var-template=demo_report_ the browser says "Connection error". I checked also the firewall ports and the 3000 and 8815 ports are open.
And how can I create a PDF report for a specific dashboard?
Can you help me? Thank you.
This is the wizard configuration output:
This is the config file: