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

Add link when using iframes to have iframes without using the grafana-renderer and still have links to Grafana #300

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

mdicss
Copy link

@mdicss mdicss commented Oct 21, 2022

Hi Carsten
We have the problem, that the grafana-renderer is very slow and uses a lot resources. Is much faster, to use iframes to embed graphs in icingaweb2. Further you then have tooltips in the graphs.
The downside is, that you do no longer have links to grafana to open a dashboard from icingaweb2.
So I extended Grapher.php to add a link above the grafana panels embedded as iframes into icingaweb2. With this, you have much faster rendering of the graphs in the iframes and you still can click on a link '=> see in Grafana' to open the panel in Grafana.

I did the according changes to GeneralConfigForm.php to be able to interactively do the config for the grafana-module too.

Hi Carsten
We have the problem, that the grafana-renderer is very slow and uses a lot resources. Is much faster, to use iframes to embed graphs in icingaweb2. Further you then have tooltips in the graphs.
The downside is, that you do no longer have links to grafana to open a dashboard from icingaweb2.
So I extended Grapher.php to add a link above the grafana panels embedded as iframes into icingaweb2. With this, you have much faster rendering of the graphs in the iframes and you still can click on a link '=> see in Grafana' to open the panel in Grafana.

I did the according changes to GeneralConfigForm.php to be able to interactively do the config for the grafana-module too.
I did the according changes to GeneralConfigForm.php to be able to interactively do the config for the grafana-module too.

Maybe someone can enhance the php?
@mdicss
Copy link
Author

mdicss commented Oct 21, 2022

I just have seen, that there is a different behaviour regarding the width of the graphs depending on debug mode is on or off.

@mdicss
Copy link
Author

mdicss commented Nov 3, 2022

I did some enhancements to my changes in Grapher.php and set the with of iframes to 100%, so the width is set by the width of the browser window.
I made hight configurable for iframes in GeneralConfigForm.php

@egnappahz
Copy link

I like this, and I like this alot. Thank you for your work.

@Mikesch-mp Mikesch-mp added this to the 2.0.1 milestone Feb 23, 2023
@Mikesch-mp Mikesch-mp self-assigned this Feb 23, 2023
@Mikesch-mp Mikesch-mp removed this from the 2.0.1 milestone Mar 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants