divinity666 / ruby-grafana-reporter

Reporting Service for Grafana
MIT License
66 stars 5 forks source link

Error to configure a report in grafana #38

Open JERUSO opened 1 year ago

JERUSO commented 1 year ago

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.

image

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. image

When Running it shows me the following error image

Application call I do the application call as shown image

Environment (please complete the following information):

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

divinity666 commented 1 year ago

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.

Med-salem-Guenaya commented 1 month ago

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.

divinity666 commented 1 month ago

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.