Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

templates path issue #132

Closed
plane-jobs opened this issue Jun 20, 2019 · 3 comments
Closed

templates path issue #132

plane-jobs opened this issue Jun 20, 2019 · 3 comments

Comments

@plane-jobs
Copy link

2019/06/20 17:17:36 Called with template: templates/1.tex
2019/06/20 17:17:36 Error reading template file: "open templates/1.tex: no such file or directory"
2019/06/20 17:17:36 Connecting to dashboard at http://localhost:3000/api/dashboards/uid/YleEB9nZk

[root@ templates]# pwd
/bin/templates
[root@ templates]# ll
total 8
-rw-r--r-- 1 root root 726 Jun 20 17:13 1.tex

Where is the path?

@IzakMarais
Copy link
Owner

Strange, I tested this again just to be sure and it worked fine for me:

T:\repos\reporter\bin  
λ ls
grafana-reporter.exe*

T:\repos\reporter\bin  
λ mkdir templates

T:\repos\reporter\bin  
λ touch templates\1.tex

T:\repos\reporter\bin  
λ .\grafana-reporter.exe
2019/06/20 14:00:41 grafana reporter, version: 2.1-0 hash: 997082a234c053fad981efaccf3f2332c6ba5ed2
2019/06/20 14:00:41 serving at ':8686' and using grafana at 'localhost:3000'
2019/06/20 14:00:45 Reporter called
2019/06/20 14:00:45 Called with api Token:
2019/06/20 14:00:45 Called without variable
2019/06/20 14:00:45 Called with dashboard: Y4N5w6pmk
2019/06/20 14:00:45 Called with time range: {now-1h now}
2019/06/20 14:00:45 Called with template: templates\1.tex
2019/06/20 14:00:45 Connecting to dashboard at http://localhost:3000/api/dashboards/uid/Y4N5w6pmk
...

Did you perhaps execute the reporter from a different directory? The assumption is that templates is a relative path. However, you can override it to any (possible absolute) path using the command line argument -templates. See grafana-reporter --help

@plane-jobs
Copy link
Author

think you ,Can be shown

@IzakMarais
Copy link
Owner

Assuming you meant "Thank you, can be closed".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants