ruby-grafana-reporter
ruby-grafana-reporter copied to clipboard
Error to configure a report in grafana
Describe the issue I have configured the reporter service in a linux centos, it generates the demo report without problem, however following the documentation I have created a variable in my report.

I have created the variable as a constant and as a text and I have entered the name of the grafana dashboard.
The link configuration in the dashboard grafana it is.

When Running it shows me the following error

Application call
I do the application call as shown

Environment (please complete the following information):
- OS [e.g. Windows 10]:
- Grafana version [e.g. 6.3.4]: 9.0.2
- Environment [e.g. source, gem, docker or windows-exe]: gem
- Ruby Version, if source or gem environment [e.g. 2.3.7]: ruby 2.7.4p191 (2021-07-07 revision a21a3b7d23) [x86_64-linux]
- Reporter version [e.g. 0.3.0]: lastest
How do I be able to call the report for each one of the dashboards? Is there a portal with examples? I just followed the github documentation.
Thanks
Thanks for using the reporter.
So, it looks like, you try to have a variable in your dashboard, which points to the reporter template name. In your configuration, you point to a template named VMwarevSphere_Overview, but obviously this file does not exists, as you can see in the log entries.
The template variable has to point to the template file name, not to the dashboard.
I strongly recommend digging deeper in the wizard template file, which should make thinks a bit clearer.
Feel free to get back in case of questions.
hello. i did the same but got the same error. now i understand the problem is the lack of a template file. that being said how do i make this template file and what can i include in it to make it render the graphs in my grafana web view?
sorry if this has already been answered somewhere else.
Try creating a report template as described here: https://github.com/divinity666/ruby-grafana-reporter?tab=readme-ov-file#quick-start
Then you should be able to render that template with the reporter.
After that succeeds, you should be able to go through the template file and create your own, or adapt the demo report as needed to get to the desired result.
Closing because of missing feedback.