-
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
Feature request: table panel height #72
Comments
You should generate an authorisation apitoken in the grafana user interface and pass that along as described in the readme here. |
Thanks for your response ! It worked successfully but after generating PDF i could see some unwanted spaces in PDF and also if i have 4 tables with single row each means it was generating dashboard with 4 pages , one table per page, is there a way to reduce the page sizing or reducing the width/height to display in a proper format ? |
If you want finer control over the layout, you can write your own custom LaTeX template. See the 'template' section under Query paramters in the readme. Here is an example issue where someone used a template to create landscape mode reports. |
I could see height and width are hardcorded in your code, and from your clarifications i tried to update the height and width in json data but it was not reflected in PDF. Is there a way to edit the panel size ? can you please share your thoughts on it.https://github.com/IzakMarais/reporter/blob/master/grafana/api.go#L160 |
Great, so after resolving the authentication problem, it seems your remaining issue is related to (perhaps a duplicate of) #52? If so, that is nice since this adds another +1 for that planned enhancement. |
OK, so unfortunately the fix for #52 doesn't work here for Tables with scrolling enabled. If the table doesn't have scrolling enabled, requesting a small, say 100 pixel high, render works: it actually renders the table high enough to fit in all the rows that need to be displayed. For tables with scrolling it will actually adhere to the requested height, which means the table will be rendered without adequate height in all cases. Since scrolling is on by default, this is not sufficient. A possible fix is to interrogate the table json and decide how high to render it based on more than just the panel type. |
This feature might also help for very tall tables where the height has been modified in the dashboard to allow many rows to be displayed on a single page. |
A more concise summary of the problem from #142:
|
Partially addressed by enabling new grid-layout flag (-grid-layout=1), which will allow all the rows visible on the dashboard table panel's first page to be captured in the report PNG. See #162 (comment) for an example. For tables that span multiple pages, I don't see any way to add support for those. |
Hi,
I tried the below steps
error fetching dashboard IUjOhkNik: error obtaining dashboard from http://localhost:3000/api/dashboards/uid/IUjOhkNik?var-Suite=Suite2&var-TestTitle1=JMeter+Test&var-aggregation=30s&var-application=MyTest5&var-data_source=jmeter&var-measurement_name=jmeter&var-send_interval=5&var-transaction=Access. Got Status 401 Unauthorized, message: {"message":"Unauthorized"}
2018/07/20 16:33:44 grafana reporter, version: 2.0-1 hash: 098683c
2018/07/20 16:33:44 serving at ':8686' and using grafana at 'localhost:3000'
2018/07/20 16:33:45 Reporter called
2018/07/20 16:33:45 Called with api Token:
2018/07/20 16:33:45 Called with variable: var-TestTitle1 [JMeter Test]
2018/07/20 16:33:45 Called with variable: var-aggregation [30s]
2018/07/20 16:33:45 Called with variable: var-transaction [Access]
2018/07/20 16:33:45 Called with variable: var-measurement_name [jmeter]
2018/07/20 16:33:45 Called with variable: var-send_interval [5]
2018/07/20 16:33:45 Called with variable: var-Suite [Suite2]
2018/07/20 16:33:45 Called with variable: var-data_source [jmeter]
2018/07/20 16:33:45 Called with variable: var-application [MyTest5]
2018/07/20 16:33:45 Called with dashboard: IUjOhkNik
2018/07/20 16:33:45 Called with time range: {1528966160000 1528966499000}
2018/07/20 16:33:45 Connecting to dashboard at http://localhost:3000/api/dashboards/uid/IUjOhkNik?var-Suite=Suite2&var-TestTitle1=JMeter+Test&var-aggregation=30s&var-application=MyTest5&var-data_source=jmeter&var-measurement_name=jmeter&var-send_interval=5&var-transaction=Access
2018/07/20 16:33:45 Error generating report: error fetching dashboard IUjOhkNik: error obtaining dashboard from http://localhost:3000/api/dashboards/uid/IUjOhkNik?var-Suite=Suite2&var-TestTitle1=JMeter+Test&var-aggregation=30s&var-application=MyTest5&var-data_source=jmeter&var-measurement_name=jmeter&var-send_interval=5&var-transaction=Access. Got Status 401 Unauthorized, message: {"message":"Unauthorized"}
Any help would be appreciated.
Thanks,
Sindhuja
The text was updated successfully, but these errors were encountered: