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

Reporting breaks with HTTPS Grafana server #354

Open
alexanderjardim opened this issue Sep 22, 2023 · 1 comment
Open

Reporting breaks with HTTPS Grafana server #354

alexanderjardim opened this issue Sep 22, 2023 · 1 comment

Comments

@alexanderjardim
Copy link

alexanderjardim commented Sep 22, 2023

I am running grafana-reporter using the following command

 grafana-reporter -ip https://grafana.myservice -grid-layout=1 --ssl-check=false

Then, when I try to generate a report, I get the following error

2023/09/22 13:56:51 Connecting to dashboard at http://https://grafana.myservice/api/dashboards/uid/f30bb6c9-b725-48ca-8572-b2096aff90d4
2023/09/22 13:56:56 Error generating report: error fetching dashboard f30bb6c9-b725-48ca-8572-b2096aff90d4: error executing getDashboard request for http://https://grafana.myservice/api/dashboards/uid/f30bb6c9-b725-48ca-8572-b2096aff90d4: Get "http://https//grafana.myservice/api/dashboards/uid/f30bb6c9-b725-48ca-8572-b2096aff90d4": dial tcp: lookup https: Try again

As we can see, reporter is building the url wrong.

@liliwanggithub
Copy link

Hi alexanderjardim,

I check the source code it can be change the default http to http as below command line

grafana-reporter -cmd_enable=1 -cmd_apiKey xxx -proto https:// -ip localhost:3000 ssl-check false -cmd_dashboard <dashboard_UIT>-cmd_ts from=now-1d -cmd_o out.pdf
you can try

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