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

Indirect-Proxy mode crops redered images #127

Closed
nbuchwitz opened this issue Mar 12, 2018 · 10 comments
Closed

Indirect-Proxy mode crops redered images #127

nbuchwitz opened this issue Mar 12, 2018 · 10 comments
Assignees

Comments

@nbuchwitz
Copy link
Contributor

If using the new indirect-proxy mode, the rendered graph images are cropped.

bildschirmfoto von 2018-03-12 21-38-21

Expected Behavior

Graphs are rendered without cropping.

Current Behavior

The rendered graph is cropped.

Your Environment

  • Icinga Web 2 Grafana version (System - About): 5.0
  • Icinga Web 2 version and modules (System - About): 2.5.1
  • Version used (icinga2 --version): 2.8.1
  • Operating System and version: CentOS 7
@Mikesch-mp
Copy link
Owner

Grafana 5, still have to test it. But can you please enable debug and post output.

@nbuchwitz
Copy link
Contributor Author

Of course:

Access mode | indirectproxy
Authentication type | token
Protocol | https
Grafana Host | monitoring.domain.does-not-matter:3000
Dashboard Store | db
Dashboard Name | base-metrics
Panel ID | 4
Organization ID | 1
Theme | light
Timerange | 6h
Timerangeto | now
Height | 280
Width | 640
Graph URL | http://monitoring.domain.does-not-matter/icingaweb2/grafana/img?host=host.domain.tl&service=load&timerange=6h&cachetime=58
Disable graph custom variable | grafana_graph_disable
Graph config custom variable | grafana_graph_config
Shadows | No

@Mikesch-mp
Copy link
Owner

Hmm my Grafana5 produces correct images. iam a bit puzzled now
image

@nbuchwitz
Copy link
Contributor Author

Even with the load service (or another with more than two rows)? In my environment all graphs with <= 2 rows are fine.

@Mikesch-mp
Copy link
Owner

Got it. Seem this is a Grafana 5 bug. Only happens if the dashboard has more then on panel in it or is created with version 4. Need more testing before i open a bug report

@Mikesch-mp
Copy link
Owner

Mikesch-mp commented Mar 12, 2018

If you readd rows, the graphs look normal again.
image
image

Will open bug report at Grafana

@juangranados
Copy link

I have created a new dashboard from Grafana v5.0.1 and rendered images still are cropped using indirectproxy only, if using proxy same error. It only happen on graph services with more than two rows.

image

@Mikesch-mp
Copy link
Owner

I cant reproduce this with grafana 5.1.3 anymore. If someone still have this problem, please open a issue over at Grafana, because this is not a failure of the module.

@nbuchwitz
Copy link
Contributor Author

@juangranados if the error stil exists check your graph height in the module configuration. In my case this helped to avoid the crop (300px should be fine)

@Mikesch-mp
Copy link
Owner

@ALL if the legend gets only cropped its not a render problem, then the size is just to small.

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

No branches or pull requests

3 participants