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

Graph render performance slow #21

Closed
shakalandy opened this issue Apr 5, 2017 · 5 comments
Closed

Graph render performance slow #21

shakalandy opened this issue Apr 5, 2017 · 5 comments
Assignees

Comments

@shakalandy
Copy link

We are experiencing slow render performance (2-3 sec) for graphs with default values:

Graph height The graph height in pixel, default: 280
Graph width The graph width in pixel, default : 640
Timerange The global time range for the graphs, default: 6h

We are fetching the graphs from localhost.
how can the the render time be improved?
Is it solely depending on grafana? or graphite?

(we activated render logging in graphite, takes usualle 0,00x seconds for graphite to render - so much overhead lost on the way?)

Thanks!

@Mikesch-mp
Copy link
Owner

Hi,

Rendertime depends on Grafana, the amount of data that is queried. For my test systems it takes only about 2 to 4 seconds with InfluxDB (running on same host on a intel celeron). With Graphite on a other host (but still on same celeron) it takes also only about 2 to 4 seconds (only tested with ping4 service). Which php version you use? My test enviroment runs with php 7.1.x
See my screenshot with the timestamps before and after rendering the graphs

Graphite:
image

InfluxDB:
image

@shakalandy
Copy link
Author

yeah, that is what we see on our side. Comparing to good old pnp the rendering takes quite some time and results "hey everything is slow after migration" feeling ;)
Would it be possible to lazy-load the graphs via ajax or similar so that the rendering doesn't block the rendering of the page?

@friesoft
Copy link
Contributor

We also see a performance hit in displaying the host/service pages because the page waits for the graph to be rendered by grafana. +1 for lazy loading :)

@Mikesch-mp Mikesch-mp self-assigned this Apr 20, 2017
@Mikesch-mp
Copy link
Owner

I will add an direct link mode to the module.

@Mikesch-mp
Copy link
Owner

Added direct access, speeds up page load, but you need auth.anonymous enabled in the Grafana server settings.

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