-
Notifications
You must be signed in to change notification settings - Fork 302
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
Error obtaining dashboard #10
Comments
Based on the error it looks like you have Auth enabled on your Grafana. You will need to use the api Token parameter of the grafana-reporter, or disable auth in your Grafana settings. |
@IzakMarais Thanks for your reply. |
You would have to retrieve the API token from Grafana, e.g. using the GUI. Somewhere there is an API keys section under admin settings. Once you have the token, you need to pass it as a query parameter
|
I forgot to close this issue. I tried by disabling auth by making the following changes in 'Anonymous Auth' section of grafana.ini file and it worked for me. Thanks for your help. |
Thanks IzakMarais for providing a tool to export grafana dashboard into a pdf file.
I have tried it and getting the following error when I clicked on the link in dashboard. I have installed grafana on a linux box(myLinuxPC) and launching the dashboard link from my windows box using http://xx.xx.xx.xxx:3000/dashboard/db/backendlistner. Url for exporting to pdf is - http://xx.xx.xx.xxx:8686/api/report/backendlistner
Error obtaining dashboard: {"message":"Unauthorized"}
Logs on my linux box:
$./grafana-reporter
2016/12/01 11:37:52 grafana reporter, version: 0.6-2 hash: de8d06baeab734a93ce36032d283c852de5d394e
2016/12/01 11:37:52 serving at ':8686' and using grafana at 'localhost:3000'
2016/12/01 12:00:18 Reporter called
2016/12/01 12:00:18 Called with api Token:
2016/12/01 12:00:18 Called with dashboard: backendlistner
2016/12/01 12:00:18 Called with time range: {1479884394820 1479884800264}
2016/12/01 12:00:18 Connecting to dashboard at http://localhost:3000/api/dashboards/db/backendlistner
2016/12/01 12:00:18 Error obtaining dashboard: 401 Unauthorized
2016/12/01 12:00:18 Error generating report: Error obtaining dashboard: {"message":"Unauthorized"}
The text was updated successfully, but these errors were encountered: