divinity666 / ruby-grafana-reporter

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

Customized report templates #14

Closed DimitrovMiro closed 2 years ago

DimitrovMiro commented 2 years ago

Describe the issue Is it possible to configure our own font in the report, like logo etc

divinity666 commented 2 years ago

Yes, this is possible by using asciidoctor themes. For reference see: https://github.com/divinity666/ruby-grafana-reporter/issues/4

If you have additional questions, please let me know.

DimitrovMiro commented 2 years ago

Hi, do you have any idea why my custom template is not found. The debug log is saying

could not locate or load the pdf theme `basic-theme' in C:\Users\xxxx\Downloads\basic-theme.yml

DimitrovMiro commented 2 years ago

the call in the link section of Grafana

http://localhost:8815/render?var-template=miro_report&pdf-theme=basic-theme&pdf-themesdir=C:\Users\xxx\Downloads\basic-theme.yml

divinity666 commented 2 years ago

You should be using the path only in the pdf-themesdir, without the template name itself, i.e.

http://localhost:8815/render?var-template=miro_report&pdf-theme=basic-theme&pdf-themesdir=C:\Users\xxx\Downloads

in your case.

divinity666 commented 2 years ago

Any updates? Otherwise I'll close the case because of missing information within the next days.

DimitrovMiro commented 2 years ago

that one is good, you can close it