-
Notifications
You must be signed in to change notification settings - Fork 313
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
customize heigh from Panel #150
Comments
This duplicates #72.
Yes you should be able to do that. When calling Grafana via Panel > Share > Direct link rendered image, you should get a URL like You can modify the height parameter to change the size of the returned image. In the reporter source, this gets set here. |
Hello, thanks for the answer. I changed it here. If I then 2019/08/26 12:27:24 grafana reporter, version: 2.2-1 hash: 40c2d53 Best regards |
From that log doesn't look like you changed the height. You might have to use some debugging skills: log your changes to the output to convince yourself that they are having an effect. |
i changed the following values in the api.go. I also deleted the api.go, dashboard.go and time.go and executed the cli command and noticed that the program works anyway. Could it be that these settings are in the binary and the configs don't matter? Also I have tried the *_test.go files Best regards Update [root@krzzabbix01 go]# grep -iHr height * = grafana-reporter -cmd_enable=1 -cmd_apiKey eyJrIjoiRmx0dklVckpFSlRTY3E4VEVnc1NKYkx4NTlDTUNWVlIiLCJuIjoiZXhwb3J0IiwiaWQiOjF9 -ip localhost:3000 -cmd_dashboard 557gdsHZG -cmd_ts from=now-1M%2FM -cmd_o /home/admin/4.pdf = 2019/08/29 10:31:13 Downloading image 9 http://localhost:3000/render/d-solo/557gdsHZG/_?from=now-1M%2FM&height=500&panelId=9&theme=light&to=now&width=1000 |
Go is a compiled language (like C++ and Java), not an interpreted language (like Ruby or Python), so after making your source changes, you need to build the program again. Rerunning the |
Hello,
I know the subject has been raised repeatedly.
I have a panel (table) which is slightly longer than 500.
Can I customize the code to give Table more?
or is there already another possibility?
I have the same problem with Grafana directly. Under Panel - Share - Link it does the same for me.
Thanks
The text was updated successfully, but these errors were encountered: